blob: b0d2defee4b1b7cf589f3c24ccc1a4e43b1bee7e [file] [log] [blame]
// STLport configuration file
// It is internal STLport header - DO NOT include it directly
#define _STLP_COMPILER "Watcom"
#if (__WATCOMC__ < 1250)
# error Not supported!
#endif
#ifndef _CPPRTTI
# define _STLP_NO_RTTI 1
#endif
// for switches (-xs, -xss, -xst)
#if !(defined (__SW_XS) || defined (__SW_XSS) || defined(__SW_XST))
# define _STLP_HAS_NO_EXCEPTIONS 1
#endif
#if defined (_MT) && !defined (_NOTHREADS)
# define _STLP_THREADS 1
#endif
#define _STLP_NO_VENDOR_STDLIB_L
#define _STLP_NO_VENDOR_MATH_F
#define _STLP_NO_VENDOR_MATH_L
#define _STLP_LONG_LONG long long
#define _STLP_CALL __cdecl
#define _STLP_IMPORT_DECLSPEC __declspec(dllimport)
#define _STLP_NO_CONST_IN_PAIR
//#define _STLP_DONT_USE_PRIV_NAMESPACE
//#define _STLP_NO_MOVE_SEMANTIC
//#define _STLP_NO_TYPENAME_IN_TEMPLATE_HEADER
#define _STLP_DONT_SUPPORT_REBIND_MEMBER_TEMPLATE
#define _STLP_NO_RELOPS_NAMESPACE
#define _STLP_NEEDS_EXTRA_TEMPLATE_CONSTRUCTORS
#define _STLP_NO_STATIC_CONST_DEFINITION
//#define _STLP_HAS_SPECIFIC_PROLOG_EPILOG
#define _STLP_DONT_SIMULATE_PARTIAL_SPEC_FOR_TYPE_TRAITS
//#define _STLP_USE_OLD_HP_ITERATOR_QUERIES
#define _STLP_NO_FUNCTION_TMPL_PARTIAL_ORDER 1
#define _STLP_NO_CLASS_PARTIAL_SPECIALIZATION 1
//#define _STLP_NO_MEMBER_TEMPLATE_KEYWORD 1
//#define _STLP_NO_MEMBER_TEMPLATES 1
//#define _STLP_NO_MEMBER_TEMPLATE_CLASSES 1
//#define _STLP_LIMITED_DEFAULT_TEMPLATES 1
//#define _STLP_HAS_NO_NAMESPACES 1
//#define _STLP_NEED_TYPENAME 1
#define _STLP_NO_EXPLICIT_FUNCTION_TMPL_ARGS 1
//#define _STLP_STATIC_CONST_INIT_BUG 1
// #define _STLP_THROW_RETURN_BUG 1
//#define _STLP_NO_TEMPLATE_CONVERSIONS 1
#define _STLP_BASE_TYPEDEF_OUTSIDE_BUG 1
#define _STLP_NO_DEFAULT_NON_TYPE_PARAM 1
#define _STLP_NON_TYPE_TMPL_PARAM_BUG 1
//#define _STLP_NONTEMPL_BASE_MATCH_BUG
//#define _STLP_NO_EXCEPTION_HEADER 1
#define _STLP_NO_BAD_ALLOC 1
//#define _STLP_NO_TYPENAME_ON_RETURN_TYPE
//#define _STLP_NESTED_TYPE_PARAM_BUG 1
//#define _STLP_NO_USING_FOR_GLOBAL_FUNCTIONS 1
#define _STLP_NO_ARROW_OPERATOR 1
// This one is present in 11, but apparently has bugs (with auto_ptr).
//#define _STLP_NO_NEW_STYLE_CASTS 1
// Get rid of Watcom's min and max macros
#undef min
#undef max
// On QNX, headers are supposed to be found in /usr/include,
// so default "../include" should work.
#ifndef __QNX__
# define _STLP_NATIVE_INCLUDE_PATH ../h
#else
// boris : is this true or just the header is not in /usr/include ?
# define _STLP_NO_TYPEINFO 1
#endif
// Inline replacements for locking calls under Watcom
// Define _STLP_NO_WATCOM_INLINE_INTERLOCK to keep using
// standard WIN32 calls
// Define _STL_MULTIPROCESSOR to enable lock
#define _STLP_NO_WATCOM_INLINE_INTERLOCK
#if !defined(_STLP_NO_WATCOM_INLINE_INTERLOCK)
long __stl_InterlockedIncrement( long *var );
long __stl_InterlockedDecrement( long *var );
#ifdef _STL_MULTIPROCESSOR
// Multiple Processors, add lock prefix
#pragma aux __stl_InterlockedIncrement parm [ ecx ] = \
".586" \
"mov eax, 1" \
"lock xadd [ecx], eax" \
"inc eax" \
value [eax];
#pragma aux __stl_InterlockedDecrement parm [ ecx ] = \
".586" \
"mov eax, 0FFFFFFFFh" \
"lock xadd [ecx], eax" \
"dec eax" \
value [eax];
#else
// Single Processor, lock prefix not needed
#pragma aux __stl_InterlockedIncrement parm [ ecx ] = \
".586" \
"mov eax, 1" \
"xadd [ecx], eax" \
"inc eax" \
value [eax];
#pragma aux __stl_InterlockedDecrement parm [ ecx ] = \
".586" \
"mov eax, 0FFFFFFFFh" \
"xadd [ecx], eax" \
"dec eax" \
value [eax];
#endif // _STL_MULTIPROCESSOR
long __stl_InterlockedExchange( long *Destination, long Value );
// xchg has auto-lock
#pragma aux __stl_InterlockedExchange parm [ecx] [eax] = \
".586" \
"xchg eax, [ecx]" \
value [eax];
# define _STLP_ATOMIC_INCREMENT(__x) __stl_InterlockedIncrement((long*)__x)
# define _STLP_ATOMIC_DECREMENT(__x) __stl_InterlockedDecrement((long*)__x)
# define _STLP_ATOMIC_EXCHANGE(__x, __y) __stl_InterlockedExchange((long*)__x, (long)__y)
# define _STLP_ATOMIC_EXCHANGE_PTR(__x, __y) __stl_InterlockedExchange((long*)__x, (long)__y)
#endif /* INLINE INTERLOCK */