epoc32/include/tools/stlport/stl/config/_msvc.h
author William Roberts <williamr@symbian.org>
Tue, 16 Mar 2010 16:12:26 +0000
branchSymbian2
changeset 2 2fe1408b6811
child 4 837f303aceeb
permissions -rw-r--r--
Final list of Symbian^2 public API header files
williamr@2
     1
/* STLport configuration file
williamr@2
     2
 * It is internal STLport header - DO NOT include it directly
williamr@2
     3
 * Microsoft Visual C++ 6.0, 7.0, 7.1, 8.0, ICL
williamr@2
     4
 */
williamr@2
     5
williamr@2
     6
#if !defined (_STLP_COMPILER)
williamr@2
     7
#  define _STLP_COMPILER "Microsoft Visual Studio C++"
williamr@2
     8
#endif
williamr@2
     9
williamr@2
    10
#if !defined (__ICL) && !defined (_STLP_MSVC)
williamr@2
    11
#  define _STLP_MSVC _MSC_VER
williamr@2
    12
#endif
williamr@2
    13
williamr@2
    14
#if !defined (_STLP_MSVC_LIB)
williamr@2
    15
#  define _STLP_MSVC_LIB _MSC_VER
williamr@2
    16
#endif
williamr@2
    17
williamr@2
    18
#if defined (__BUILDING_STLPORT) && defined (_MANAGED)
williamr@2
    19
/* Building a managed version of STLport is not supported because we haven't
williamr@2
    20
 * found a good reason to support it. However, building a managed translation
williamr@2
    21
 * unit using STLport _is_ supported.
williamr@2
    22
 */
williamr@2
    23
#  error Sorry but building a managed version of STLport is not supported.
williamr@2
    24
#endif
williamr@2
    25
williamr@2
    26
#if defined (_STLP_USING_PLATFORM_SDK_COMPILER)
williamr@2
    27
/* This is a specific section for compilers coming with platform SDKs. Native
williamr@2
    28
 * library coming with it is different from the one coming with commercial
williamr@2
    29
 * MSVC compilers so there is some specific settings.
williamr@2
    30
 */
williamr@2
    31
#  define _STLP_NATIVE_INCLUDE_PATH ../crt
williamr@2
    32
#  define _STLP_VENDOR_GLOBAL_CSTD
williamr@2
    33
#  define _STLP_VENDOR_TERMINATE_STD
williamr@2
    34
#  define _STLP_GLOBAL_NEW_HANDLER
williamr@2
    35
#  if (_STLP_MSVC_LIB <= 1400)
williamr@2
    36
/* We hope this bug will be fixed in future versions. */
williamr@2
    37
#    define _STLP_NEW_DONT_THROW_BAD_ALLOC 1
williamr@2
    38
#  endif
williamr@2
    39
#endif
williamr@2
    40
williamr@2
    41
#define _STLP_CALL __cdecl
williamr@2
    42
williamr@2
    43
#ifndef _STLP_LONG_LONG
williamr@2
    44
#  define _STLP_LONG_LONG __int64
williamr@2
    45
#endif
williamr@2
    46
williamr@2
    47
#define _STLP_PRAGMA_ONCE
williamr@2
    48
williamr@2
    49
/* These switches depend on compiler flags. We are hoping here that compilers
williamr@2
    50
 * simulating MSVC behavior use identical macros to report compilation context.
williamr@2
    51
 * Otherwise those macros will have to be undef in specific compiler configuration
williamr@2
    52
 * files.
williamr@2
    53
 */
williamr@2
    54
#ifndef _CPPUNWIND
williamr@2
    55
#  define _STLP_DONT_USE_EXCEPTIONS 1
williamr@2
    56
#endif
williamr@2
    57
williamr@2
    58
#ifndef _CPPRTTI
williamr@2
    59
#  define _STLP_NO_RTTI 1
williamr@2
    60
#endif
williamr@2
    61
williamr@2
    62
#if defined (_MT) && !defined (_STLP_NO_THREADS) && !defined (_REENTRANT)
williamr@2
    63
#  define _REENTRANT 1
williamr@2
    64
#endif
williamr@2
    65
williamr@2
    66
#if !defined (_NATIVE_WCHAR_T_DEFINED)
williamr@2
    67
#  define _STLP_WCHAR_T_IS_USHORT 1
williamr@2
    68
#endif
williamr@2
    69
williamr@2
    70
#define _STLP_MINIMUM_IMPORT_STD
williamr@2
    71
#define _STLP_NO_VENDOR_STDLIB_L 1
williamr@2
    72
williamr@2
    73
#if defined (_STLP_MSVC)
williamr@2
    74
williamr@2
    75
#define _STLP_NORETURN_FUNCTION __declspec(noreturn)
williamr@2
    76
williamr@2
    77
/* Full compiler version comes from boost library intrinsics.hpp header. */
williamr@2
    78
#  if defined (_MSC_FULL_VER) && (_MSC_FULL_VER >= 140050215)
williamr@2
    79
#    define _STLP_HAS_TRIVIAL_CONSTRUCTOR(T) __has_trivial_constructor(T)
williamr@2
    80
#    define _STLP_HAS_TRIVIAL_COPY(T) __has_trivial_copy(T)
williamr@2
    81
#    define _STLP_HAS_TRIVIAL_ASSIGN(T) __has_trivial_assign(T)
williamr@2
    82
#    define _STLP_HAS_TRIVIAL_DESTRUCTOR(T) __has_trivial_destructor(T)
williamr@2
    83
#    define _STLP_IS_POD(T) __is_pod(T)
williamr@2
    84
#    define _STLP_HAS_TYPE_TRAITS_INTRINSICS
williamr@2
    85
#  endif
williamr@2
    86
williamr@2
    87
#  ifndef _STLP_MSVC50_COMPATIBILITY
williamr@2
    88
#    define _STLP_MSVC50_COMPATIBILITY   1
williamr@2
    89
#  endif
williamr@2
    90
williamr@2
    91
#  define _STLP_DLLEXPORT_NEEDS_PREDECLARATION 1
williamr@2
    92
#  define _STLP_HAS_SPECIFIC_PROLOG_EPILOG 1
williamr@2
    93
williamr@2
    94
/* # ifndef __BUILDING_STLPORT
williamr@2
    95
 * #  define _STLP_USE_TEMPLATE_EXPORT 1
williamr@2
    96
 * # endif
williamr@2
    97
 */
williamr@2
    98
#  if (_STLP_MSVC <= 1400)
williamr@2
    99
#    define _STLP_STATIC_CONST_INIT_BUG   1
williamr@2
   100
#  endif
williamr@2
   101
williamr@2
   102
/** Note: the macro _STLP_NO_UNCAUGHT_EXCEPT_SUPPORT is defined
williamr@2
   103
unconditionally and undef'ed here when applicable. */
williamr@2
   104
#  if defined(UNDER_CE)
williamr@2
   105
/* eVCx:
williamr@2
   106
uncaught_exception is declared in the SDKs delivered with eVC4 (eVC3 is
williamr@2
   107
unknown) and they all reside in namespace 'std' there. However, they are not
williamr@2
   108
part of any lib so linking fails. When using VC8 to crosscompile for CE 5 on
williamr@2
   109
an ARMV4I, the uncaught_exception test fails, the function returns the wrong
williamr@2
   110
value. */
williamr@2
   111
#  else
williamr@2
   112
/* VCx:
williamr@2
   113
These are present at least since VC6, but the uncaught_exception() of VC6 is
williamr@2
   114
broken, it returns the wrong value in the unittests. 7.1 and later seem to
williamr@2
   115
work, 7.0 is still unknown (we assume it works until negative report). */
williamr@2
   116
#    if (_STLP_MSVC >= 1300)// VC7 and later
williamr@2
   117
#      undef _STLP_NO_UNCAUGHT_EXCEPT_SUPPORT
williamr@2
   118
#      if !defined (_STLP_DONT_USE_EXCEPTIONS)
williamr@2
   119
#        define _STLP_NOTHROW throw()
williamr@2
   120
#      endif
williamr@2
   121
#    endif
williamr@2
   122
#  endif
williamr@2
   123
williamr@2
   124
#  if (_STLP_MSVC <= 1300)
williamr@2
   125
#    define _STLP_NO_CLASS_PARTIAL_SPECIALIZATION 1
williamr@2
   126
#    define _STLP_NO_FUNCTION_TMPL_PARTIAL_ORDER 1
williamr@2
   127
/* There is no partial spec, and MSVC breaks on simulating it for iterator_traits queries */
williamr@2
   128
#    define _STLP_USE_OLD_HP_ITERATOR_QUERIES
williamr@2
   129
#    define _STLP_NO_TYPENAME_IN_TEMPLATE_HEADER
williamr@2
   130
#    define _STLP_NO_METHOD_SPECIALIZATION 1
williamr@2
   131
#    define _STLP_DEF_CONST_PLCT_NEW_BUG 1
williamr@2
   132
#    define _STLP_NO_TYPENAME_ON_RETURN_TYPE 1
williamr@2
   133
/* VC++ cannot handle default allocator argument in template constructors */
williamr@2
   134
#    define _STLP_NEEDS_EXTRA_TEMPLATE_CONSTRUCTORS
williamr@2
   135
#    define _STLP_NO_QUALIFIED_FRIENDS    1
williamr@2
   136
#    define _STLP_NO_FRIEND_TEMPLATES
williamr@2
   137
/* Fails to properly resolve call to sin() from within sin() */
williamr@2
   138
#  endif
williamr@2
   139
williamr@2
   140
#  if (_STLP_MSVC < 1300)
williamr@2
   141
#    define _STLP_NO_IEC559_SUPPORT 1
williamr@2
   142
#  endif
williamr@2
   143
williamr@2
   144
#  if (_STLP_MSVC < 1300) /* including MSVC 6.0 */
williamr@2
   145
/* These work, as long they are inline */
williamr@2
   146
#    define _STLP_INLINE_MEMBER_TEMPLATES 1
williamr@2
   147
#    define _STLP_NO_MEMBER_TEMPLATE_KEYWORD 1
williamr@2
   148
#    define _STLP_DONT_SUPPORT_REBIND_MEMBER_TEMPLATE 1
williamr@2
   149
#  endif
williamr@2
   150
williamr@2
   151
#  if (_STLP_MSVC >= 1200)
williamr@2
   152
#    define _STLP_HAS_NATIVE_FLOAT_ABS 1
williamr@2
   153
#  endif
williamr@2
   154
williamr@2
   155
// TODO: some eVC4 compilers report _MSC_VER 1201 or 1202, which category do they belong to?
williamr@2
   156
#  if (_STLP_MSVC > 1200) && (_STLP_MSVC < 1310)
williamr@2
   157
#    define _STLP_NO_MOVE_SEMANTIC
williamr@2
   158
#  endif
williamr@2
   159
williamr@2
   160
#  if (_STLP_MSVC < 1300)
williamr@2
   161
/* TODO: remove this if it is handled and documented elsewhere
williamr@2
   162
 * dums: VC6 do not handle correctly member templates of class that are explicitely
williamr@2
   163
 * instanciated to be exported. There is a workaround, seperate the non template methods
williamr@2
   164
 * from the template ones within 2 different classes and only export the non template one.
williamr@2
   165
 * It is implemented for basic_string and locale at the writing of this note.
williamr@2
   166
 * However this problem hos not  been considered as important enough to remove template member
williamr@2
   167
 * methods for other classes. Moreover Boost (www.boost.org) required it to be granted.
williamr@2
   168
 * The workaround is activated thanks to the _STLP_USE_MSVC6_MEM_T_BUG_WORKAROUND macro defined
williamr@2
   169
 * later in this config file.
williamr@2
   170
 */
williamr@2
   171
/*
williamr@2
   172
#    if defined (_DLL)
williamr@2
   173
#      define _STLP_NO_MEMBER_TEMPLATES 1
williamr@2
   174
#    endif
williamr@2
   175
*/
williamr@2
   176
williamr@2
   177
/* Boris : not defining this macro for SP5 causes other problems */
williamr@2
   178
/*#    if !defined (_MSC_FULL_VER) || (_MSC_FULL_VER < 12008804 ) */
williamr@2
   179
#    define _STLP_NO_USING_FOR_GLOBAL_FUNCTIONS 1
williamr@2
   180
/*#    endif */
williamr@2
   181
#    define _STLP_DONT_USE_BOOL_TYPEDEF 1
williamr@2
   182
#    define _STLP_DONT_RETURN_VOID 1
williamr@2
   183
#  endif
williamr@2
   184
williamr@2
   185
/*
williamr@2
   186
 * MSVC6 is known to have many trouble with namespace management but
williamr@2
   187
 * MSVC .Net 2003 and 2005 also have a bug difficult to reproduce without
williamr@2
   188
 * STLport:
williamr@2
   189
 * namespace stlp_std {
williamr@2
   190
 *   typedef int foo_int;
williamr@2
   191
 * }
williamr@2
   192
 * #include <map>
williamr@2
   193
 * const foo_int bar = 0;
williamr@2
   194
 *
williamr@2
   195
 * As you can see foo is available without namespace specification as if
williamr@2
   196
 * a using namespace stlp_std has been performed. Defining _STLP_USING_NAMESPACE_BUG
williamr@2
   197
 * restore the expected compilation error.
williamr@2
   198
 */
williamr@2
   199
#  define _STLP_USING_NAMESPACE_BUG 1
williamr@2
   200
williamr@2
   201
#  if (_STLP_MSVC < 1300) /* MSVC 6.0 and earlier */
williamr@2
   202
/* defined for DEBUG and NDEBUG too, to allow user mix own debug build with STLP release library */
williamr@2
   203
#    define _STLP_USE_ABBREVS
williamr@2
   204
#  endif
williamr@2
   205
williamr@2
   206
// TODO: what is the earliest version for this? If it is 1200, use _STLP_MSVC>=1200.
williamr@2
   207
#  if (_STLP_MSVC > 1100) && (_STLP_MSVC < 1300)
williamr@2
   208
typedef char __stl_char;
williamr@2
   209
#    define _STLP_DEFAULTCHAR __stl_char
williamr@2
   210
#  endif
williamr@2
   211
williamr@2
   212
#  if (_STLP_MSVC < 1200) /* before VC++ 6.0 */
williamr@2
   213
/* #  define _STLP_NO_MEMBER_TEMPLATES 1 */
williamr@2
   214
/* #  define _STLP_NO_EXPLICIT_FUNCTION_TMPL_ARGS 1 */
williamr@2
   215
#    define _STLP_DONT_SIMULATE_PARTIAL_SPEC_FOR_TYPE_TRAITS 1
williamr@2
   216
#    define _STLP_DONT_USE_PARTIAL_SPEC_WRKD 1
williamr@2
   217
#    define _STLP_QUALIFIED_SPECIALIZATION_BUG 1
williamr@2
   218
#    define _STLP_NON_TYPE_TMPL_PARAM_BUG 1
williamr@2
   219
#    define _STLP_THROW_RETURN_BUG 1
williamr@2
   220
#    define _STLP_NO_MEMBER_TEMPLATE_CLASSES 1
williamr@2
   221
#    define _STLP_DEF_CONST_DEF_PARAM_BUG 1
williamr@2
   222
#  endif
williamr@2
   223
williamr@2
   224
#  if (_STLP_MSVC < 1100 )
williamr@2
   225
#    ifndef _STLP_USE_NO_IOSTREAMS
williamr@2
   226
#      define _STLP_USE_NO_IOSTREAMS
williamr@2
   227
#    endif
williamr@2
   228
/* #  define _STLP_NESTED_TYPE_PARAM_BUG 1 */
williamr@2
   229
/* Debug mode does not work for 4.2 */
williamr@2
   230
#    if defined (_STLP_DEBUG)
williamr@2
   231
#      pragma message ("STLport debug mode does not work for VC++ 4.2, turning _STLP_DEBUG off ...")
williamr@2
   232
#      undef _STLP_DEBUG
williamr@2
   233
#    endif
williamr@2
   234
#    define _STLP_NO_BOOL            1
williamr@2
   235
#    define _STLP_NEED_TYPENAME      1
williamr@2
   236
#    define _STLP_NEED_EXPLICIT      1
williamr@2
   237
#    define _STLP_NEED_MUTABLE       1
williamr@2
   238
#    define _STLP_NO_PARTIAL_SPECIALIZATION_SYNTAX
williamr@2
   239
#    define _STLP_LIMITED_DEFAULT_TEMPLATES 1
williamr@2
   240
#    define _STLP_NONTEMPL_BASE_MATCH_BUG 1
williamr@2
   241
#    define _STLP_BROKEN_USING_DIRECTIVE  1
williamr@2
   242
#    define _STLP_NO_ARROW_OPERATOR 1
williamr@2
   243
#    define _STLP_NO_SIGNED_BUILTINS 1
williamr@2
   244
#    define _STLP_NO_EXCEPTION_SPEC 1
williamr@2
   245
#    define _STLP_HAS_NO_NAMESPACES 1
williamr@2
   246
#    define _STLP_NO_AT_MEMBER_FUNCTION 1
williamr@2
   247
#    define _STLP_NO_MEMBER_TEMPLATES 1
williamr@2
   248
#  endif /* 1100 */
williamr@2
   249
williamr@2
   250
#endif /* _STLP_MSVC */
williamr@2
   251
williamr@2
   252
/** The desktop variants starting with VC8 have a set of more secure replacements
williamr@2
   253
for the error-prone string handling functions of the C standard lib. */
williamr@2
   254
#if (_STLP_MSVC_LIB >= 1400) && !defined (_STLP_USING_PLATFORM_SDK_COMPILER) && !defined(UNDER_CE)
williamr@2
   255
#  define _STLP_USE_SAFE_STRING_FUNCTIONS 1
williamr@2
   256
#endif
williamr@2
   257
williamr@2
   258
#if (_STLP_MSVC_LIB <= 1310)
williamr@2
   259
#  define _STLP_VENDOR_GLOBAL_CSTD
williamr@2
   260
#endif
williamr@2
   261
williamr@2
   262
#if (_STLP_MSVC_LIB >= 1300) && !defined(UNDER_CE)
williamr@2
   263
/* Starting with MSVC 7.0 and compilers simulating it,
williamr@2
   264
 * we assume that the new SDK is granted:
williamr@2
   265
 */
williamr@2
   266
#  define _STLP_NEW_PLATFORM_SDK 1
williamr@2
   267
#endif
williamr@2
   268
williamr@2
   269
#if (_STLP_MSVC_LIB < 1300) /* including MSVC 6.0 */
williamr@2
   270
#  define _STLP_GLOBAL_NEW_HANDLER 1
williamr@2
   271
#  define _STLP_VENDOR_UNEXPECTED_STD
williamr@2
   272
#  define _STLP_NEW_DONT_THROW_BAD_ALLOC 1
williamr@2
   273
#endif
williamr@2
   274
williamr@2
   275
#if (_STLP_MSVC_LIB < 1100)
williamr@2
   276
/* up to 4.2, library is in global namespace */
williamr@2
   277
#  define _STLP_VENDOR_GLOBAL_STD
williamr@2
   278
#endif
williamr@2
   279
williamr@2
   280
#if (_STLP_MSVC_LIB <= 1010)
williamr@2
   281
/* "bool" is reserved in MSVC 4.1 while <yvals.h> absent, so : */
williamr@2
   282
#  define _STLP_NO_BAD_ALLOC
williamr@2
   283
#  define _STLP_HAS_NO_NEW_C_HEADERS 1
williamr@2
   284
#  define _STLP_NO_NEW_NEW_HEADER 1
williamr@2
   285
#elif (_STLP_MSVC_LIB < 1100)
williamr@2
   286
/* VC++ 4.2 and higher */
williamr@2
   287
#  define _STLP_YVALS_H 1
williamr@2
   288
#  define _STLP_USE_NO_IOSTREAMS 1
williamr@2
   289
#endif
williamr@2
   290
williamr@2
   291
#define _STLP_EXPORT_DECLSPEC __declspec(dllexport)
williamr@2
   292
#define _STLP_IMPORT_DECLSPEC __declspec(dllimport)
williamr@2
   293
williamr@2
   294
#if !defined (_STLP_MSVC) || (_STLP_MSVC >= 1100)
williamr@2
   295
#  define _STLP_CLASS_EXPORT_DECLSPEC __declspec(dllexport)
williamr@2
   296
#  define _STLP_CLASS_IMPORT_DECLSPEC __declspec(dllimport)
williamr@2
   297
#endif
williamr@2
   298
williamr@2
   299
#if defined (__DLL) || defined (_DLL) || defined (_RTLDLL) || defined (_AFXDLL)
williamr@2
   300
#  define _STLP_RUNTIME_DLL
williamr@2
   301
#endif
williamr@2
   302
#if defined (__BUILDING_STLPORT) && \
williamr@2
   303
   (defined (_STLP_USE_DYNAMIC_LIB) || \
williamr@2
   304
    defined (_STLP_RUNTIME_DLL) && !defined (_STLP_USE_STATIC_LIB))
williamr@2
   305
#  define _STLP_DLL
williamr@2
   306
#endif
williamr@2
   307
#include <stl/config/_detect_dll_or_lib.h>
williamr@2
   308
#undef _STLP_RUNTIME_DLL
williamr@2
   309
#undef _STLP_DLL
williamr@2
   310
williamr@2
   311
#if defined (_STLP_USE_DYNAMIC_LIB)
williamr@2
   312
#  undef  _STLP_USE_DECLSPEC
williamr@2
   313
#  define _STLP_USE_DECLSPEC 1
williamr@2
   314
#  if (_STLP_MSVC >= 1200) && (_STLP_MSVC < 1300)
williamr@2
   315
#    define _STLP_USE_MSVC6_MEM_T_BUG_WORKAROUND 1
williamr@2
   316
#  endif
williamr@2
   317
#endif
williamr@2
   318
williamr@2
   319
#if !defined (_STLP_IMPORT_TEMPLATE_KEYWORD)
williamr@2
   320
#  if !defined (_MSC_EXTENSIONS) || defined(_STLP_MSVC) && _STLP_MSVC >= 1300
williamr@2
   321
#    define _STLP_IMPORT_TEMPLATE_KEYWORD
williamr@2
   322
#  else
williamr@2
   323
#    define _STLP_IMPORT_TEMPLATE_KEYWORD extern
williamr@2
   324
#  endif
williamr@2
   325
#endif
williamr@2
   326
#define _STLP_EXPORT_TEMPLATE_KEYWORD
williamr@2
   327
williamr@2
   328
#if defined (_STLP_MSVC) && (_STLP_MSVC < 1200)
williamr@2
   329
/*    only static STLport lib now works for VC 5.0 */
williamr@2
   330
#  undef  _STLP_USE_STATIC_LIB
williamr@2
   331
#  undef  _STLP_USE_DYNAMIC_LIB
williamr@2
   332
#  define _STLP_USE_STATIC_LIB
williamr@2
   333
/*    disable hook which makes template symbols to be searched for in the library */
williamr@2
   334
#  undef _STLP_NO_CUSTOM_IO
williamr@2
   335
#endif
williamr@2
   336
williamr@2
   337
#include <stl/config/_auto_link.h>
williamr@2
   338
williamr@2
   339
#if defined (_STLP_USING_PLATFORM_SDK_COMPILER)
williamr@2
   340
/* The Windows 64 bits SDK required for the moment link to bufferoverflowU.lib for
williamr@2
   341
 * additional buffer overrun checks. Rather than require the STLport build system and
williamr@2
   342
 * users to explicitely link with it we use the MSVC auto link feature.
williamr@2
   343
 */
williamr@2
   344
#  if !defined (_STLP_DONT_USE_AUTO_LINK) || defined (__BUILDING_STLPORT)
williamr@2
   345
#    pragma comment (lib, "bufferoverflowU.lib")
williamr@2
   346
#    if defined (_STLP_VERBOSE_AUTO_LINK)
williamr@2
   347
#      pragma message ("STLport: Auto linking to bufferoverflowU.lib")
williamr@2
   348
#    endif
williamr@2
   349
#  endif
williamr@2
   350
#endif
williamr@2
   351
williamr@2
   352
/* Local Variables:
williamr@2
   353
 * mode:C++
williamr@2
   354
 * End:
williamr@2
   355
 */