1 // STLport configuration file for Digital Mars C++
3 //#define _STLP_VERBOSE
5 #define _STLP_COMPILER "DMC"
7 #if defined (_STLP_VERBOSE)
8 # pragma message __DMC_VERSION_STRING__
12 # error "Digital Mars C++ versions prior to 8.46 are not supported!"
16 # define _STLP_NO_EXCEPTIONS
18 #define _STLP_VENDOR_GLOBAL_CSTD
20 //DMC prefer enum to real static const variable because it do not consider
21 //static const as const enough to be used in switch declaration...
22 #define _STLP_STATIC_CONST_INIT_BUG
25 // it's not fully supported on non-Win32 platforms
26 # define _STLP_NO_NATIVE_WIDE_FUNCTIONS
29 /* _STLP_NO_OWN_NAMESPACE is defined because Digital Mars' linker and libarian
30 appear to have problems with STLport namespaces. Summary of the issues:
32 STATIC: Digital Mars' librarian (lib.exe) may fail with "len <= IDMAX" error
33 if _STLP_DEBUG is defined. This is because Digital Mars' librarian uses
34 Microsoft OMF format, which limits identifier length to about 512 bytes.
35 With STLport namespaces, some identifiers such as Category_Map in
36 src/locale_catalog.cpp may exceed the maximum OMF identifier length.
38 DYNAMIC: Export issues with cin, cout, cerr, clog in src/iostream.cpp.
39 Exports in Digital Mars 'def' file must match mangled names in iostream.cpp.
40 With STLport namespaces, the mangled names in the intermediate files no
41 longer match these pre-defined exports. To use STLport dynamic libraries
42 and STLport namespaces with Digital Mars, the pre-defined exports in
43 src/iostream.cpp and the related Digital Mars 'def' files would need to be
45 #define _STLP_NO_OWN_NAMESPACE 1
47 // select threads strategy
48 #if defined (_MT) && !defined (_NOTHREADS)
55 # define _STLP_NO_BOOL
57 # define _STLP_DONT_USE_BOOL_TYPEDEF
60 #if _INTEGRAL_MAX_BITS >= 64
61 # define _STLP_LONG_LONG long long
64 #define _STLP_DONT_USE_PRIV_NAMESPACE
65 #define _STLP_NO_BAD_ALLOC
66 #define _STLP_THROW_RETURN_BUG
69 # undef _STLP_NO_UNEXPECTED_EXCEPT_SUPPORT
72 #define _STLP_USE_ABBREVS
73 #define _STLP_NO_CONTAINERS_EXTENSION
74 #define _STLP_NO_FUNCTION_TMPL_PARTIAL_ORDER
76 #define _STLP_EXPORT_DECLSPEC __declspec(dllexport)
77 #define _STLP_IMPORT_DECLSPEC __declspec(dllimport)
79 #define _STLP_CLASS_EXPORT_DECLSPEC __declspec(dllexport)
80 #define _STLP_CLASS_IMPORT_DECLSPEC __declspec(dllimport)
82 #define _STLP_IMPORT_TEMPLATE_KEYWORD __declspec(dllimport)
83 #define _STLP_EXPORT_TEMPLATE_KEYWORD __declspec(dllexport)
89 # define _STLP_RUNTIME_DLL
91 #include <stl/config/_detect_dll_or_lib.h>
92 #undef _STLP_RUNTIME_DLL
95 #if defined (_STLP_USE_DYNAMIC_LIB)
96 # define _STLP_USE_DECLSPEC 1
97 # if defined (__BUILDING_STLPORT)
98 # define _STLP_CALL __export
106 #include <stl/config/_auto_link.h>