1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000
1.2 +++ b/epoc32/include/tools/stlport/stl/config/host.h Wed Mar 31 12:33:34 2010 +0100
1.3 @@ -0,0 +1,265 @@
1.4 +/*
1.5 + * This file defines site configuration.
1.6 + */
1.7 +
1.8 +/*
1.9 + * _STLP_NO_THREADS: if defined, STLport don't use any
1.10 + * multithreading support. Synonym is _NOTHREADS
1.11 + */
1.12 +/*
1.13 +#define _NOTHREADS
1.14 +#define _STLP_NO_THREADS
1.15 +*/
1.16 +
1.17 +/* _PTHREADS: if defined, use POSIX threads for multithreading support. */
1.18 +/*
1.19 +#define _PTHREADS
1.20 +*/
1.21 +
1.22 +/* compatibility section
1.23 + */
1.24 +
1.25 +#if (defined (_STLP_NOTHREADS) || defined (_STLP_NO_THREADS) || defined (NOTHREADS))
1.26 +# if !defined (_NOTHREADS)
1.27 +# define _NOTHREADS
1.28 +# endif
1.29 +# if !defined (_STLP_NO_THREADS)
1.30 +# define _STLP_NO_THREADS
1.31 +# endif
1.32 +#endif
1.33 +
1.34 +#if !defined(_STLP_USE_DYNAMIC_LIB) && !defined(_STLP_USE_STATIC_LIB)
1.35 +/*
1.36 + * Turn _STLP_USE_DYNAMIC_LIB to enforce use of .dll version of STLport library.
1.37 + * NOTE: please do that only if you know what you are doing!
1.38 + * Changing default will require you to change makefiles in "build" accordingly
1.39 + * and to rebuild STLPort library!
1.40 + * On UNIX, this has no effect, see build/lib/README for make tags.
1.41 + * See STLport configuration file (build/lib/configure.bat) for help in building
1.42 + * the require library versions.
1.43 + */
1.44 +/*
1.45 +#define _STLP_USE_DYNAMIC_LIB
1.46 +*/
1.47 +
1.48 +/*
1.49 + * Turn _STLP_USE_STATIC_LIB to enforce use of static version of STLport library.
1.50 + * NOTE: please do that only if you know what you are doing!
1.51 + * Changing default will require you to change makefile in "build" accordingly
1.52 + * and to rebuild STLPort library!
1.53 + * On UNIX, this has no effect, see build/lib/README for make tags.
1.54 + * See STLport configuration file (build/lib/configure.bat) for help in building
1.55 + * the require library versions.
1.56 + */
1.57 +/*
1.58 +#define _STLP_USE_STATIC_LIB
1.59 +*/
1.60 +#endif
1.61 +
1.62 +/*
1.63 + * Signal STLport that we are using the cygwin distrib with the -mno-cygwin option.
1.64 + * This is similar to a mingw environment except that relative path to native headers
1.65 + * is different, this is why we need this macro.
1.66 + */
1.67 +/*
1.68 +#define _STLP_NO_CYGWIN
1.69 + */
1.70 +
1.71 +/*
1.72 + * Edit relative path below (or put full path) to get native
1.73 + * compiler vendor's headers included. Default is "../include"
1.74 + * for _STLP_NATIVE_INCLUDE_PATH, default for other macros is
1.75 + * _STLP_NATIVE_INCLUDE_PATH.
1.76 + * Hint: never install STLport in the directory that ends with "include"
1.77 + */
1.78 +/*
1.79 +#undef _STLP_NATIVE_INCLUDE_PATH
1.80 +#define _STLP_NATIVE_INCLUDE_PATH ../include
1.81 +*/
1.82 +/* same for C library headers like <cstring> */
1.83 +/*
1.84 +#undef _STLP_NATIVE_CPP_C_INCLUDE_PATH
1.85 +#define _STLP_NATIVE_CPP_C_INCLUDE_PATH _STLP_NATIVE_INCLUDE_PATH
1.86 +*/
1.87 +/* same for C headers like <string.h> */
1.88 +/*
1.89 +#undef _STLP_NATIVE_C_INCLUDE_PATH
1.90 +#define _STLP_NATIVE_C_INCLUDE_PATH _STLP_NATIVE_INCLUDE_PATH
1.91 +*/
1.92 +/* Some compilers locate basic C++ runtime support headers (<new>, <typeinfo>, <exception>) in separate directory */
1.93 +/*
1.94 +#undef _STLP_NATIVE_CPP_RUNTIME_INCLUDE_PATH
1.95 +#define _STLP_NATIVE_CPP_RUNTIME_INCLUDE_PATH _STLP_NATIVE_INCLUDE_PATH
1.96 +*/
1.97 +
1.98 +/*
1.99 + * If namespases available, STLport use own namespace (and masquerade
1.100 + * it as std). Disable own namespace may cause undefined behaviour.
1.101 + */
1.102 +/*
1.103 +#define _STLP_NO_OWN_NAMESPACE 1
1.104 +*/
1.105 +
1.106 +/*
1.107 + * Uncomment _STLP_LEAKS_PEDANTIC to force deallocation of ALL allocated
1.108 + * memory chunks. Normally not required. But if you worry about quazi-leaks
1.109 + * (may be reported by some leaks detection tools), use
1.110 + * _STLP_LEAKS_PEDANTIC. It should be used with _STLP_USE_NEWALLOC or
1.111 + * _STLP_USE_MALLOC (see below), the default node_alloc allocator also clean
1.112 + * its internal memory pool but only if STLport is used as a dynamic library
1.113 + * under Win32 (using MSVC like compilers).
1.114 + */
1.115 +/*
1.116 +#define _STLP_LEAKS_PEDANTIC 1
1.117 +*/
1.118 +
1.119 +/*
1.120 + * Uncomment _STLP_USE_NEWALLOC to force allocator<T> to use plain "new"
1.121 + * instead of STLport optimized node allocator engine.
1.122 + */
1.123 +/*
1.124 +#define _STLP_USE_NEWALLOC 1
1.125 +*/
1.126 +
1.127 +/*
1.128 + * Uncomment _STLP_USE_MALLOC to force allocator<T> to use plain "malloc"
1.129 + * instead of STLport optimized node allocator engine.
1.130 + */
1.131 +/*
1.132 +#define _STLP_USE_MALLOC 1
1.133 +*/
1.134 +
1.135 +/*
1.136 + * Uncomment _STLP_USE_PERTHREAD_ALLOC to force allocator<T> to use
1.137 + * a specific implementation targetting the massively multi-threaded
1.138 + * environment. The implementation is based on the POSIX pthread
1.139 + * interface.
1.140 + */
1.141 +/*
1.142 +#define _STLP_USE_PERTHREAD_ALLOC 1
1.143 +*/
1.144 +
1.145 +/*
1.146 + * Set _STLP_DEBUG_ALLOC to use allocators that perform memory debugging,
1.147 + * such as padding/checking for memory consistency
1.148 + */
1.149 +/*
1.150 +#define _STLP_DEBUG_ALLOC 1
1.151 +*/
1.152 +
1.153 +/*
1.154 + * For compiler not supporting partial template specialization or ordering of
1.155 + * template functions STLport implement a workaround based on inheritance
1.156 + * detection. This inheritance can introduce trouble in client code when
1.157 + * a user class derived a STL container (which is not advised as STL containers
1.158 + * do not have virtual destructors). To disable this workaround turn this macro on:
1.159 + */
1.160 +/*
1.161 +#define _STLP_DONT_USE_PARTIAL_SPEC_WRKD 1
1.162 +*/
1.163 +
1.164 +/*
1.165 + * Uncomment this to force all debug diagnostic to be directed through a
1.166 + * user-defined global function:
1.167 + * void __stl_debug_message(const char * format_str, ...)
1.168 + * instead of predefined STLport routine.
1.169 + * This allows you to take control of debug message output.
1.170 + * Default routine calls fprintf(stderr,...)
1.171 + * Note : If you set this macro, you must supply __stl_debug_message
1.172 + * function definition somewhere.
1.173 + */
1.174 +/*
1.175 +#define _STLP_DEBUG_MESSAGE 1
1.176 +*/
1.177 +
1.178 +/*
1.179 + * Uncomment this to force all failed assertions to be executed through
1.180 + * user-defined global function:
1.181 + * void __stl_debug_terminate(void). This allows
1.182 + * you to take control of assertion behaviour for debugging purposes.
1.183 + * Default routine calls _STLP_ABORT().
1.184 + * Note : If you set this macro, you must supply __stl_debug_terminate
1.185 + * function definition somewhere.
1.186 + */
1.187 +/*
1.188 +#define _STLP_DEBUG_TERMINATE 1
1.189 +*/
1.190 +
1.191 +/*
1.192 + * Uncomment that to disable exception handling code
1.193 + */
1.194 +/*
1.195 +#define _STLP_DONT_USE_EXCEPTIONS 1
1.196 +*/
1.197 +
1.198 +/*
1.199 + * _STLP_NO_NAMESPACES: if defined, don't put the library in namespace
1.200 + * stlport:: or std::, even if the compiler supports namespaces
1.201 + */
1.202 +/*
1.203 +#define _STLP_NO_NAMESPACES 1
1.204 +*/
1.205 +
1.206 +/*==========================================================
1.207 + * Compatibility section
1.208 + *==========================================================*/
1.209 +
1.210 +/*
1.211 + * Use abbreviated class names for linker benefit (don't affect interface).
1.212 + * This option is obsolete, but should work in this release.
1.213 + *
1.214 + */
1.215 +/*
1.216 +#define _STLP_USE_ABBREVS
1.217 +*/
1.218 +
1.219 +/*
1.220 + * This definition precludes STLport reverse_iterator to be compatible with
1.221 + * other parts of MSVC library. (With partial specialization, it just
1.222 + * has no effect).
1.223 + * Use it _ONLY_ if you use SGI-style reverse_iterator<> template explicitly
1.224 + */
1.225 +/*
1.226 +#define _STLP_NO_MSVC50_COMPATIBILITY 1
1.227 +*/
1.228 +
1.229 +/*
1.230 + * _STLP_USE_RAW_SGI_ALLOCATORS is a hook so that users can disable use of
1.231 + * allocator<T> as default parameter for containers, and use SGI
1.232 + * raw allocators as default ones, without having to edit library headers.
1.233 + * Use of this macro is strongly discouraged.
1.234 + */
1.235 +/*
1.236 +#define _STLP_USE_RAW_SGI_ALLOCATORS 1
1.237 +*/
1.238 +
1.239 +/*
1.240 + * Use obsolete overloaded template functions iterator_category(), value_type(), distance_type()
1.241 + * for querying iterator properties. Please note those names are non-standard and are not guaranteed
1.242 + * to be used by every implementation. However, this setting is on by default when partial specialization
1.243 + * is not implemented in the compiler and cannot be simulated (only if _STLP_NO_ANACHRONISMS is not set).
1.244 + * Use of those interfaces for user-defined iterators is strongly discouraged:
1.245 + * please use public inheritance from iterator<> template to achieve desired effect.
1.246 + * Second form is to disable old-style queries in any case.
1.247 + */
1.248 +/*
1.249 +#define _STLP_USE_OLD_HP_ITERATOR_QUERIES
1.250 +#define _STLP_NO_OLD_HP_ITERATOR_QUERIES
1.251 +*/
1.252 +
1.253 +
1.254 +/*==========================================================================*/
1.255 +
1.256 +/* This section contains swithes which should be off by default,
1.257 + * but so few compilers would have it undefined, so that we set them here,
1.258 + * with the option to be turned off later in compiler-specific file
1.259 + */
1.260 +
1.261 +#define _STLP_NO_UNCAUGHT_EXCEPT_SUPPORT
1.262 +#define _STLP_NO_UNEXPECTED_EXCEPT_SUPPORT
1.263 +
1.264 +/*
1.265 + Local Variables:
1.266 + mode:C++
1.267 + End:
1.268 +*/