1 stl_confix.h |
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 * STLport configuration file |
|
18 * It is internal STLport header - DO NOT include it directly |
|
19 * Purpose of this file : to define STLport settings that depend on |
|
20 * compiler flags or can be otherwise missed |
|
21 * |
|
22 */ |
|
23 |
|
24 #ifndef _STLP_CONFIX_H |
|
25 # define _STLP_CONFIX_H |
|
26 |
|
27 /* If, by any chance, C compiler gets there, try to help it to pass smoothly */ |
|
28 # if ! defined (__cplusplus) && ! defined (_STLP_HAS_NO_NAMESPACES) |
|
29 # define _STLP_HAS_NO_NAMESPACES |
|
30 # endif |
|
31 |
|
32 # if defined(__MINGW32__) |
|
33 # define _STLP_NO_DRAND48 |
|
34 # endif |
|
35 |
|
36 /* Modena C++ library */ |
|
37 #if defined (__MWERKS__) && __MWERKS__ <= 0x2303 || (defined (__KCC) && __KCC_VERSION < 3400) |
|
38 # include <mcompile.h> |
|
39 # define _STLP_USE_MSIPL 1 |
|
40 # if defined (__KCC) || (defined(__MSL_CPP__) && \ |
|
41 ( (__MSL_CPP__ >= 0x5000 && defined( _MSL_NO_MESSAGE_FACET )) || \ |
|
42 (__MSL_CPP__ < 0x5000 && defined( MSIPL_NL_TYPES ))) \ |
|
43 ) |
|
44 # define _STLP_NO_NATIVE_MESSAGE_FACET 1 |
|
45 # endif |
|
46 #endif |
|
47 |
|
48 /* common switches for EDG front-end */ |
|
49 # if defined (__EDG_SWITCHES) |
|
50 # if !(defined(_TYPENAME) || defined (_TYPENAME_IS_KEYWORD)) |
|
51 # undef _STLP_NEED_TYPENAME |
|
52 # define _STLP_NEED_TYPENAME 1 |
|
53 # endif |
|
54 # if !defined(_WCHAR_T_IS_KEYWORD) |
|
55 # undef _STLP_NO_WCHAR_T |
|
56 # define _STLP_NO_WCHAR_T 1 |
|
57 # endif |
|
58 # ifndef _PARTIAL_SPECIALIZATION_OF_CLASS_TEMPLATES |
|
59 # undef _STLP_NO_CLASS_PARTIAL_SPECIALIZATION |
|
60 # define _STLP_NO_CLASS_PARTIAL_SPECIALIZATION 1 |
|
61 # endif |
|
62 # ifndef _MEMBER_TEMPLATES |
|
63 # undef _STLP_NO_MEMBER_TEMPLATES |
|
64 # define _STLP_NO_MEMBER_TEMPLATES 1 |
|
65 # undef _STLP_NO_MEMBER_TEMPLATE_CLASSES |
|
66 # define _STLP_NO_MEMBER_TEMPLATE_CLASSES 1 |
|
67 # endif |
|
68 # if !defined(_MEMBER_TEMPLATE_KEYWORD) |
|
69 # undef _STLP_NO_MEMBER_TEMPLATE_KEYWORD |
|
70 # define _STLP_NO_MEMBER_TEMPLATE_KEYWORD 1 |
|
71 # endif |
|
72 # if !defined (__EXCEPTIONS) && ! defined (_EXCEPTIONS) |
|
73 # undef _STLP_HAS_NO_EXCEPTIONS |
|
74 # define _STLP_HAS_NO_EXCEPTIONS |
|
75 # endif |
|
76 # undef __EDG_SWITCHES |
|
77 # endif /* EDG */ |
|
78 #endif |