williamr@4: // STLport configuration file for Digital Mars C++ williamr@4: williamr@4: //#define _STLP_VERBOSE williamr@4: williamr@4: #define _STLP_COMPILER "DMC" williamr@4: williamr@4: #if defined (_STLP_VERBOSE) williamr@4: # pragma message __DMC_VERSION_STRING__ williamr@4: #endif williamr@4: williamr@4: #if (__DMC__ < 0x846) williamr@4: # error "Digital Mars C++ versions prior to 8.46 are not supported!" williamr@4: #endif williamr@4: williamr@4: #ifndef _CPPUNWIND williamr@4: # define _STLP_NO_EXCEPTIONS williamr@4: #endif williamr@4: #define _STLP_VENDOR_GLOBAL_CSTD williamr@4: williamr@4: //DMC prefer enum to real static const variable because it do not consider williamr@4: //static const as const enough to be used in switch declaration... williamr@4: #define _STLP_STATIC_CONST_INIT_BUG williamr@4: williamr@4: #if !defined (_WIN32) williamr@4: // it's not fully supported on non-Win32 platforms williamr@4: # define _STLP_NO_NATIVE_WIDE_FUNCTIONS williamr@4: #endif williamr@4: williamr@4: /* _STLP_NO_OWN_NAMESPACE is defined because Digital Mars' linker and libarian williamr@4: appear to have problems with STLport namespaces. Summary of the issues: williamr@4: williamr@4: STATIC: Digital Mars' librarian (lib.exe) may fail with "len <= IDMAX" error williamr@4: if _STLP_DEBUG is defined. This is because Digital Mars' librarian uses williamr@4: Microsoft OMF format, which limits identifier length to about 512 bytes. williamr@4: With STLport namespaces, some identifiers such as Category_Map in williamr@4: src/locale_catalog.cpp may exceed the maximum OMF identifier length. williamr@4: williamr@4: DYNAMIC: Export issues with cin, cout, cerr, clog in src/iostream.cpp. williamr@4: Exports in Digital Mars 'def' file must match mangled names in iostream.cpp. williamr@4: With STLport namespaces, the mangled names in the intermediate files no williamr@4: longer match these pre-defined exports. To use STLport dynamic libraries williamr@4: and STLport namespaces with Digital Mars, the pre-defined exports in williamr@4: src/iostream.cpp and the related Digital Mars 'def' files would need to be williamr@4: revised. */ williamr@4: #define _STLP_NO_OWN_NAMESPACE 1 williamr@4: williamr@4: // select threads strategy williamr@4: #if defined (_MT) && !defined (_NOTHREADS) williamr@4: # define _REENTRANT williamr@4: #else williamr@4: # define _NOTHREADS williamr@4: #endif williamr@4: williamr@4: #ifndef _BOOL_DEFINED williamr@4: # define _STLP_NO_BOOL williamr@4: #else williamr@4: # define _STLP_DONT_USE_BOOL_TYPEDEF williamr@4: #endif williamr@4: williamr@4: #if _INTEGRAL_MAX_BITS >= 64 williamr@4: # define _STLP_LONG_LONG long long williamr@4: #endif williamr@4: williamr@4: #define _STLP_DONT_USE_PRIV_NAMESPACE williamr@4: #define _STLP_NO_BAD_ALLOC williamr@4: #define _STLP_THROW_RETURN_BUG williamr@4: williamr@4: #if !defined (_DLL) williamr@4: # undef _STLP_NO_UNEXPECTED_EXCEPT_SUPPORT williamr@4: #endif williamr@4: williamr@4: #define _STLP_USE_ABBREVS williamr@4: #define _STLP_NO_CONTAINERS_EXTENSION williamr@4: #define _STLP_NO_FUNCTION_TMPL_PARTIAL_ORDER williamr@4: williamr@4: #define _STLP_EXPORT_DECLSPEC __declspec(dllexport) williamr@4: #define _STLP_IMPORT_DECLSPEC __declspec(dllimport) williamr@4: williamr@4: #define _STLP_CLASS_EXPORT_DECLSPEC __declspec(dllexport) williamr@4: #define _STLP_CLASS_IMPORT_DECLSPEC __declspec(dllimport) williamr@4: williamr@4: #define _STLP_IMPORT_TEMPLATE_KEYWORD __declspec(dllimport) williamr@4: #define _STLP_EXPORT_TEMPLATE_KEYWORD __declspec(dllexport) williamr@4: williamr@4: #if defined (_WINDLL) williamr@4: # define _STLP_DLL williamr@4: #endif williamr@4: #if defined (_DLL) williamr@4: # define _STLP_RUNTIME_DLL williamr@4: #endif williamr@4: #include williamr@4: #undef _STLP_RUNTIME_DLL williamr@4: #undef _STLP_DLL williamr@4: williamr@4: #if defined (_STLP_USE_DYNAMIC_LIB) williamr@4: # define _STLP_USE_DECLSPEC 1 williamr@4: # if defined (__BUILDING_STLPORT) williamr@4: # define _STLP_CALL __export williamr@4: # else williamr@4: # define _STLP_CALL williamr@4: # endif williamr@4: #else williamr@4: # define _STLP_CALL williamr@4: #endif williamr@4: williamr@4: #include williamr@4: williamr@4: # undef __SC__ williamr@4: