1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000
1.2 +++ b/os/ossrv/stdcpp/include/config/stl_dm.h Fri Jun 15 03:10:57 2012 +0200
1.3 @@ -0,0 +1,225 @@
1.4 +// STLport configuration file for Digital Mars C++
1.5 +
1.6 +#ifndef _STLP_DMC_H
1.7 +# define _STLP_DMC_H
1.8 +
1.9 +#if __DMC__ < 0x832
1.10 +#error "Digital Mars C++ versions prior to 8.32 are not supported!"
1.11 +#endif
1.12 +
1.13 +
1.14 +#ifndef _CPPUNWIND
1.15 +# define _STLP_NO_EXCEPTIONS
1.16 +#endif
1.17 +# undef _STLP_NO_NAMESPACES
1.18 +# define _STLP_NO_RELOPS_NAMESPACE
1.19 +# define _STLP_VENDOR_GLOBAL_CSTD
1.20 +# define _STLP_VENDOR_GLOBAL_STD
1.21 +# define _STLP_VENDOR_EXCEPT_STD std
1.22 +
1.23 +# if !defined(_WIN32)
1.24 +// it's not fully supported on non-Win32 platforms
1.25 +# define _STLP_NO_NEW_IOSTREAMS
1.26 +# define _STLP_NO_NATIVE_WIDE_FUNCTIONS
1.27 +# endif
1.28 +
1.29 +# if defined(_STLP_NO_NEW_IOSTREAMS) || defined(_STLP_NO_OWN_IOSTREAMS)
1.30 +# define _STLP_OWN_NAMESPACE
1.31 +# else
1.32 +# define _STLP_NO_OWN_NAMESPACE
1.33 +# endif
1.34 +
1.35 +
1.36 +// select threads strategy
1.37 +# if defined (_MT) && !defined (_NOTHREADS)
1.38 +# define _REENTRANT
1.39 +# else
1.40 +# define _NOTHREADS
1.41 +# endif
1.42 +
1.43 +// select SGI-style alloc instead of allocator<T>
1.44 +# define _STLP_USE_SGI_ALLOCATORS
1.45 +
1.46 +// select allocation method you like
1.47 +# undef _STLP_USE_MALLOC
1.48 +# define _STLP_USE_NEWALLOC
1.49 +
1.50 +// this one is not mandatory, just enabled
1.51 +# undef _STLP_USE_DEFALLOC
1.52 +
1.53 +// define _STLP_USE_ABBREVS if your linker has trouble with long
1.54 +// external symbols
1.55 +# undef _STLP_USE_ABBREVS
1.56 +
1.57 +
1.58 +// unsigned 32-bit integer type
1.59 +# define _STLP_UINT32_T unsigned
1.60 +
1.61 +# ifndef _BOOL_DEFINED
1.62 +# define _STLP_NO_BOOL
1.63 +# else
1.64 +# define _STLP_DONT_USE_BOOL_TYPEDEF
1.65 +# endif
1.66 +
1.67 +# undef _STLP_YVALS_H
1.68 +# undef _STLP_LIMITED_DEFAULT_TEMPLATES
1.69 +# define _STLP_DEFAULT_TYPE_PARAM
1.70 +# undef _STLP_NO_STATIC_TEMPLATE_DATA
1.71 +# undef _STLP_RAND48
1.72 +# undef _STLP_LOOP_INLINE_PROBLEMS
1.73 +
1.74 +# undef _STLP_HAS_NO_NAMESPACES
1.75 +
1.76 +# undef _STLP_NEED_TYPENAME
1.77 +# undef _STLP_NEED_EXPLICIT
1.78 +# undef _STLP_HAS_NO_EXCEPTIONS
1.79 +# undef _STLP_NO_EXCEPTION_SPEC
1.80 +# undef _STLP_WEAK_ATTRIBUTE
1.81 +# undef _STLP_BASE_MATCH_BUG
1.82 +# undef _STLP_NONTEMPL_BASE_MATCH_BUG
1.83 +# undef _STLP_NESTED_TYPE_PARAM_BUG
1.84 +# undef _STLP_NO_ARROW_OPERATOR
1.85 +# undef _STLP_UNINITIALIZABLE_PRIVATE
1.86 +# undef _STLP_BASE_TYPEDEF_BUG
1.87 +# undef _STLP_BASE_TYPEDEF_OUTSIDE_BUG
1.88 +# undef _STLP_CONST_CONSTRUCTOR_BUG
1.89 +
1.90 +# undef _STLP_NO_NEW_STYLE_CASTS
1.91 +
1.92 +# ifndef _WCHAR_T_DEFINED
1.93 +# define _STLP_NO_WCHAR_T
1.94 +# endif
1.95 +# define _STLP_HAS_NO_UNIX98_WCHAR_EXTENSIONS
1.96 +
1.97 +# undef _STLP_WCHAR_T_IS_USHORT
1.98 +
1.99 +# if _INTEGRAL_MAX_BITS >= 64
1.100 +# define _STLP_LONG_LONG long long
1.101 +# endif
1.102 +
1.103 +# undef _STLP_NO_LONG_DOUBLE
1.104 +# undef _STLP_NEED_MUTABLE
1.105 +# undef _STLP_NO_PARTIAL_SPECIALIZATION_SYNTAX
1.106 +# undef _STLP_NO_BAD_ALLOC
1.107 +# undef _STLP_DEBUG_ALLOC
1.108 +# undef _STLP_NO_MEMBER_TEMPLATES
1.109 +# undef _STLP_NO_MEMBER_TEMPLATE_CLASSES
1.110 +# define _STLP_NO_MEMBER_TEMPLATE_KEYWORD
1.111 +# undef _STLP_NO_FRIEND_TEMPLATES
1.112 +# undef _STLP_NO_QUALIFIED_FRIENDS
1.113 +# undef _STLP_NO_CLASS_PARTIAL_SPECIALIZATION
1.114 +# undef _STLP_NO_FUNCTION_TMPL_PARTIAL_ORDER
1.115 +# undef _STLP_AUTOMATIC_TYPE_TRAITS
1.116 +# undef _STLP_MEMBER_POINTER_PARAM_BUG
1.117 +# undef _STLP_NON_TYPE_TMPL_PARAM_BUG
1.118 +# undef _STLP_NO_DEFAULT_NON_TYPE_PARAM
1.119 +# undef _STLP_NO_METHOD_SPECIALIZATION
1.120 +# undef _STLP_STATIC_ARRAY_BUG
1.121 +# undef _STLP_STATIC_CONST_INIT_BUG
1.122 +# undef _STLP_TRIVIAL_CONSTRUCTOR_BUG
1.123 +# undef _STLP_TRIVIAL_DESTRUCTOR_BUG
1.124 +# undef _STLP_BROKEN_USING_DIRECTIVE
1.125 +# undef _STLP_NO_EXPLICIT_FUNCTION_TMPL_ARGS
1.126 +# undef _STLP_NO_EXCEPTION_HEADER
1.127 +# undef _STLP_DEFAULT_CONSTRUCTOR_BUG
1.128 +
1.129 +# define _STLP_HAS_NO_NEW_IOSTREAMS
1.130 +# define _STLP_HAS_NO_NEW_C_HEADERS
1.131 +# define _STLP_THROW_RETURN_BUG
1.132 +# undef _STLP_LINK_TIME_INSTANTIATION
1.133 +# undef _STLP_PARTIAL_SPEC_NEEDS_TEMPLATE_ARGS
1.134 +# undef _STLP_NO_TEMPLATE_CONVERSIONS
1.135 +# undef _STLP_NEEDS_EXTRA_TEMPLATE_CONSTRUCTORS
1.136 +
1.137 +
1.138 +# define _STLP_NO_NATIVE_MBSTATE_T
1.139 +
1.140 +
1.141 +# define _STLP_EXPORT_DECLSPEC __declspec(dllexport)
1.142 +# define _STLP_IMPORT_DECLSPEC __declspec(dllimport)
1.143 +
1.144 +# define _STLP_CLASS_EXPORT_DECLSPEC __declspec(dllexport)
1.145 +# define _STLP_CLASS_IMPORT_DECLSPEC __declspec(dllimport)
1.146 +
1.147 +# define _STLP_IMPORT_TEMPLATE_KEYWORD __declspec(dllimport)
1.148 +# define _STLP_EXPORT_TEMPLATE_KEYWORD __declspec(dllexport)
1.149 +
1.150 +#define _STLP_NATIVE_HEADER(header) <../include/##header>
1.151 +#define _STLP_NATIVE_C_HEADER(header) <../include/##header>
1.152 +#define _STLP_NATIVE_CPP_C_HEADER(header) <../include/##header>
1.153 +#define _STLP_NATIVE_OLD_STREAMS_HEADER(header) <../include/##header>
1.154 +#define _STLP_NATIVE_CPP_RUNTIME_HEADER(header) <../include/##header>
1.155 +
1.156 +
1.157 +# if defined(__BUILDING_STLPORT) && defined(_WINDLL)
1.158 +# define _STLP_CALL __export
1.159 +
1.160 +# undef _STLP_USE_DECLSPEC
1.161 +# define _STLP_USE_DECLSPEC 1
1.162 +# endif
1.163 +
1.164 +# if !defined (__BUILDING_STLPORT) && !defined (_STLP_NO_OWN_IOSTREAMS)
1.165 +# if (defined (_DLL) && !defined (_STLP_DONT_USE_DLL)) || defined (_STLP_USE_DLL)
1.166 +# undef _STLP_USE_DECLSPEC
1.167 +# define _STLP_USE_DECLSPEC 1
1.168 +# endif
1.169 +
1.170 +# if defined (_STLP_DEBUG)
1.171 +# if defined (_DLL)
1.172 +# if !defined (_STLP_DONT_USE_DLL)
1.173 +# pragma comment(lib,"stlp45dm_stldebug.lib")
1.174 +# else
1.175 +# pragma comment(lib,"stlp45dm_stldebug_staticx.lib")
1.176 +# endif
1.177 +# else
1.178 +# if defined (_STLP_USE_DLL)
1.179 +# pragma comment(lib,"stlp45dms_stldebug.lib")
1.180 +# else
1.181 +# pragma comment(lib,"stlp45dm_stldebug_static.lib")
1.182 +# endif
1.183 +# endif
1.184 +# elif defined (DEBUG)
1.185 +# if defined (_DLL)
1.186 +# if !defined (_STLP_DONT_USE_DLL)
1.187 +# pragma comment(lib,"stlp45dm_debug.lib")
1.188 +# else
1.189 +# pragma comment(lib,"stlp45dm_debug_staticx.lib")
1.190 +# endif
1.191 +# else
1.192 +# if defined (_STLP_USE_DLL)
1.193 +# pragma comment(lib,"stlp45dms_debug.lib")
1.194 +# else
1.195 +# pragma comment(lib,"stlp45dm_debug_static.lib")
1.196 +# endif
1.197 +# endif
1.198 +# else
1.199 +# if defined (_DLL)
1.200 +# if !defined (_STLP_DONT_USE_DLL)
1.201 +# pragma comment(lib,"stlp45dm.lib")
1.202 +# else
1.203 +# pragma comment(lib,"stlp45dm_staticx.lib")
1.204 +# endif
1.205 +# else
1.206 +# if defined (_STLP_USE_DLL)
1.207 +# pragma comment(lib,"stlp45dms.lib")
1.208 +# else
1.209 +# pragma comment(lib,"stlp45dm_static.lib")
1.210 +# endif
1.211 +# endif
1.212 +# endif
1.213 +# endif
1.214 +
1.215 +
1.216 +#ifdef __BUILDING_STLPORT
1.217 +// still needed for building STLport itself, but isn't needed for
1.218 +// compiling applications anymore
1.219 +# undef __SC__
1.220 +#endif
1.221 +
1.222 +#undef __STLP_NO_KEYWORDS_WORKAROUND
1.223 +#if !defined (__STLP_NO_KEYWORDS_WORKAROUND)
1.224 +# define __in __stl_in
1.225 +# define __out __stl_out
1.226 +#endif
1.227 +
1.228 +#endif