[692] | 1 | /*
|
---|
| 2 | * Copyright (c) 1999
|
---|
| 3 | * Boris Fomitchev
|
---|
| 4 | *
|
---|
| 5 | * This material is provided "as is", with absolutely no warranty expressed
|
---|
| 6 | * or implied. Any use is at your own risk.
|
---|
| 7 | *
|
---|
| 8 | * Permission to use or copy this software for any purpose is hereby granted
|
---|
| 9 | * without fee, provided the above notices are retained on all copies.
|
---|
| 10 | * Permission to modify the code and to distribute modified code is granted,
|
---|
| 11 | * provided the above notices are retained, and a notice that the code was
|
---|
| 12 | * modified is included with the above copyright notice.
|
---|
| 13 | *
|
---|
| 14 | */
|
---|
| 15 |
|
---|
| 16 | /*
|
---|
| 17 | * Purpose of this file :
|
---|
| 18 | *
|
---|
| 19 | * To hold user-definable portion of STLport settings which may be overridden
|
---|
| 20 | * on per-project basis.
|
---|
| 21 | * Please note that if you use STLport iostreams (compiled library) then you have
|
---|
| 22 | * to use consistent settings when you compile STLport library and your project.
|
---|
| 23 | * Those settings are defined in _site_config.h and have to be the same for a given
|
---|
| 24 | * STLport installation.
|
---|
| 25 | *
|
---|
| 26 | */
|
---|
| 27 |
|
---|
| 28 |
|
---|
| 29 | //==========================================================
|
---|
| 30 | // User-settable macros that control compilation:
|
---|
| 31 | // Features selection
|
---|
| 32 | //==========================================================
|
---|
| 33 |
|
---|
| 34 | /* _STLP_NO_OWN_IOSTREAMS:
|
---|
| 35 | * __STL_NO_SGI_IOSTREAMS (in older versions)
|
---|
| 36 | * This is major configuration switch.
|
---|
| 37 | * Turn it on to disable use of SGI iostreams and use wrappers
|
---|
| 38 | * around your compiler's iostreams, like before.
|
---|
| 39 | * Keep it off if you want to use SGI iostreams
|
---|
| 40 | * (Note that in this case you have to compile library in ../src
|
---|
| 41 | * and supply resulting library at link time).
|
---|
| 42 | *
|
---|
| 43 | */
|
---|
| 44 |
|
---|
| 45 | // # define _STLP_NO_OWN_IOSTREAMS 1
|
---|
| 46 |
|
---|
| 47 |
|
---|
| 48 | /*
|
---|
| 49 | * This macro only works in non-SGI iostreams mode.
|
---|
| 50 | *
|
---|
| 51 | * Uncomment to suppress using new-style streams even if they are
|
---|
| 52 | * available.
|
---|
| 53 | * Beware - _STLP_USE_OWN_NAMESPACE depends on this macro, too.
|
---|
| 54 | * Do that only if you are absolutely sure backwards-compatible
|
---|
| 55 | * <iostream.h> is not actually a wrapper with <iostream>
|
---|
| 56 | * Hint : In VC++ 6.x, they are not.
|
---|
| 57 | */
|
---|
| 58 |
|
---|
| 59 | // #define _STLP_NO_NEW_IOSTREAMS 1
|
---|
| 60 |
|
---|
| 61 | /*
|
---|
| 62 | * Use this switch for embedded systems where no iostreams are available
|
---|
| 63 | * at all. STLport own iostreams will also get disabled automatically then.
|
---|
| 64 | */
|
---|
| 65 | // # define _STLP_NO_IOSTREAMS 1
|
---|
| 66 |
|
---|
| 67 | /*
|
---|
| 68 | * Set _STLP_DEBUG to turn the "Debug Mode" on.
|
---|
| 69 | * That gets you checked iterators/ranges in the manner
|
---|
| 70 | * of "Safe STL". Very useful for debugging. Thread-safe.
|
---|
| 71 | * Please do not forget to link proper STLport library flavor
|
---|
| 72 | * (e.g libstlport_gcc_stldebug.a) when you set this flag in STLport iostreams mode.
|
---|
| 73 | */
|
---|
| 74 | #ifdef _DEBUG
|
---|
| 75 | #define _STLP_DEBUG 1
|
---|
| 76 | #endif
|
---|
| 77 |
|
---|
| 78 |
|
---|
| 79 | /*
|
---|
| 80 | *
|
---|
| 81 | * _STLP_NO_CUSTOM_IO : define this if you do not instantiate basic_xxx iostream classes with custom types (which is most likely the case).
|
---|
| 82 | * Custom means types other than char, wchar and char_traits<>,
|
---|
| 83 | * like basic_ostream<my_char_type, my_traits<my_char_type> >
|
---|
| 84 | * When this option is on, most non-inline template functions definitions for iostreams are not seen by the client.
|
---|
| 85 | * Default is off, just not to break compilation for those who do use those types.
|
---|
| 86 | * which saves a lot of compile time for most compilers, also object and executable size for some.
|
---|
| 87 | * That also guarantees that you still use optimized standard i/o when you compile your program without optimization.
|
---|
| 88 | * Option does not affect STLport library build; you may use the same binary library with and without this option,
|
---|
| 89 | * on per-project basis.
|
---|
| 90 | *
|
---|
| 91 | */
|
---|
| 92 | //#define _STLP_NO_CUSTOM_IO
|
---|
| 93 |
|
---|
| 94 |
|
---|
| 95 | /*
|
---|
| 96 | * _STLP_NO_RELOPS_NAMESPACE: if defined, don't put the relational
|
---|
| 97 | * operator templates (>, <=. >=, !=) in namespace std::rel_ops, even
|
---|
| 98 | * if the compiler supports namespaces.
|
---|
| 99 | * Note : if the compiler do not support namespaces, those operators are not be provided by default,
|
---|
| 100 | * to simulate hiding them into rel_ops. This was proved to resolve many compiler bugs with ambiguity.
|
---|
| 101 | */
|
---|
| 102 |
|
---|
| 103 | // #define _STLP_NO_RELOPS_NAMESPACE 1
|
---|
| 104 |
|
---|
| 105 |
|
---|
| 106 | /*
|
---|
| 107 | * If _STLP_USE_OWN_NAMESPACE is in effect, STLport by default will not try
|
---|
| 108 | * to rename std:: for the user
|
---|
| 109 | * to _STL::. If you do want this feature, please define the following switch :
|
---|
| 110 | */
|
---|
| 111 | // # define _STLP_REDEFINE_STD 1
|
---|
| 112 |
|
---|
| 113 |
|
---|
| 114 | /*
|
---|
| 115 | * _STLP_WHOLE_NATIVE_STD : only meaningful in _STLP_USE_OWN_NAMESPACE mode.
|
---|
| 116 | * Normally, STLport only imports necessary components from native std:: namespace -
|
---|
| 117 | * those not yet provided by STLport (<iostream>, <complex>, etc.)
|
---|
| 118 | * and their dependencies (<string>, <stdexcept>).
|
---|
| 119 | * You might want everything from std:: being available in std:: namespace when you
|
---|
| 120 | * include corresponding STLport header (like STLport <map> provides std::map as well, etc.),
|
---|
| 121 | * if you are going to use both stlport:: and std:: components in your code.
|
---|
| 122 | * Otherwise this option is not recommended as it increases the size of your object files
|
---|
| 123 | * and slows down compilation.
|
---|
| 124 | */
|
---|
| 125 | // # define _STLP_WHOLE_NATIVE_STD
|
---|
| 126 |
|
---|
| 127 |
|
---|
| 128 | /*
|
---|
| 129 | * Use this option to catch uninitialized members in your classes.
|
---|
| 130 | * When it is set, construct() and destroy() fill the class storage
|
---|
| 131 | * with _STLP_SHRED_BYTE (see below).
|
---|
| 132 | * Note : _STLP_DEBUG and _STLP_DEBUG_ALLOC don't set this option automatically.
|
---|
| 133 | */
|
---|
| 134 |
|
---|
| 135 | // # define _STLP_DEBUG_UNINITIALIZED 1
|
---|
| 136 |
|
---|
| 137 | /*
|
---|
| 138 | * Uncomment and provide a definition for the byte with which raw memory
|
---|
| 139 | * will be filled if _STLP_DEBUG_ALLOC or _STLP_DEBUG_UNINITIALIZED is defined.
|
---|
| 140 | * Choose a value which is likely to cause a noticeable problem if dereferenced
|
---|
| 141 | * or otherwise abused. A good value may already be defined for your platform; see
|
---|
| 142 | * stl_config.h
|
---|
| 143 | */
|
---|
| 144 | // #define _STLP_SHRED_BYTE 0xA3
|
---|
| 145 |
|
---|
| 146 | /*
|
---|
| 147 | * This option is for gcc users only and only affects systems where native linker
|
---|
| 148 | * does not let gcc to implement automatic instantiation of static template data members/
|
---|
| 149 | * It is being put in this file as there is no way to check if we are using GNU ld automatically,
|
---|
| 150 | * so it becomes user's responsibility.
|
---|
| 151 | *
|
---|
| 152 | */
|
---|
| 153 |
|
---|
| 154 | // #define _STLP_GCC_USES_GNU_LD
|
---|
| 155 |
|
---|
| 156 |
|
---|
| 157 | //==========================================================
|
---|
| 158 | // Compatibility section
|
---|
| 159 | //==========================================================
|
---|
| 160 |
|
---|
| 161 | /*
|
---|
| 162 | * Define this macro to disable anachronistic constructs (like the ones used in HP STL and
|
---|
| 163 | * not included in final standard, etc.
|
---|
| 164 | */
|
---|
| 165 | // define _STLP_NO_ANACHRONISMS 1
|
---|
| 166 |
|
---|
| 167 | /*
|
---|
| 168 | * Define this macro to disable STLport extensions (for example, to make sure your code will
|
---|
| 169 | * compile with some other implementation )
|
---|
| 170 | */
|
---|
| 171 | // define _STLP_NO_EXTENSIONS 1
|
---|
| 172 |
|
---|
| 173 |
|
---|
| 174 | /*
|
---|
| 175 | * You should define this macro if compiling with MFC - STLport <stl/_config.h>
|
---|
| 176 | * then include <afx.h> instead of <windows.h> to get synchronisation primitives
|
---|
| 177 | *
|
---|
| 178 | */
|
---|
| 179 |
|
---|
| 180 | // # define _STLP_USE_MFC 1
|
---|
| 181 |
|
---|
| 182 |
|
---|
| 183 | // boris : this setting is here as we cannot detect precense of new Platform SDK automatically
|
---|
| 184 | // If you are using new PSDK with VC++ 6.0 or lower, please define this to get correct prototypes for InterlockedXXX functions
|
---|
| 185 | //# define _STLP_NEW_PLATFORM_SDK 1
|
---|
| 186 |
|
---|
| 187 | /*
|
---|
| 188 | * Use minimum set of default arguments on template classes that have more
|
---|
| 189 | * than one - for example map<>, set<>.
|
---|
| 190 | * This has effect only if _STLP_LIMITED_DEFAULT_TEMPLATES is on.
|
---|
| 191 | * If _STLP_MINIMUM_DEFAULT_TEMPLATE_PARAMS is set, you'll be able to compile
|
---|
| 192 | * set<T> with those compilers, but you'll have to use __set__<T, less<T>>
|
---|
| 193 | *
|
---|
| 194 | * Affects : map<>, multimap<>, set<>, multiset<>, hash_*<>,
|
---|
| 195 | * queue<>, priority_queue<>, stack<>, istream_iterator<>
|
---|
| 196 | */
|
---|
| 197 |
|
---|
| 198 | // # define _STLP_MINIMUM_DEFAULT_TEMPLATE_PARAMS 1
|
---|
| 199 |
|
---|
| 200 | //==========================================================
|
---|
| 201 |
|
---|
| 202 | // Local Variables:
|
---|
| 203 | // mode:C++
|
---|
| 204 | // End:
|
---|