|
1 /* |
|
2 * Copyright (c) 2009 Nokia Corporation and/or its subsidiary(-ies). |
|
3 * All rights reserved. |
|
4 * This component and the accompanying materials are made available |
|
5 * under the terms of "Eclipse Public License v1.0" |
|
6 * which accompanies this distribution, and is available |
|
7 * at the URL "http://www.eclipse.org/legal/epl-v10.html". |
|
8 * |
|
9 * Initial Contributors: |
|
10 * Nokia Corporation - initial contribution. |
|
11 * |
|
12 * Contributors: |
|
13 * |
|
14 * Description: |
|
15 * |
|
16 */ |
|
17 // STLport configuration file |
|
18 // It is internal STLport header - DO NOT include it directly |
|
19 |
|
20 //#define _STLP_VERBOSE |
|
21 |
|
22 #define _STLP_COMPILER "Borland" |
|
23 |
|
24 #if (__BORLANDC__ < 0x551) |
|
25 # error - Borland compilers below version 5.5.1 not supported. |
|
26 #endif |
|
27 |
|
28 #if (__BORLANDC__ >= 0x580) && (__BORLANDC__ < 0x590) |
|
29 # define _STLP_NO_NEW_C_HEADERS |
|
30 # define _STLP_NATIVE_CPP_RUNTIME_HEADER(header) <../include/dinkumware/##header> |
|
31 # define _STLP_NO_FORCE_INSTANTIATE |
|
32 #endif |
|
33 |
|
34 #if (__BORLANDC__ >= 0x560) && (__BORLANDC__ < 0x570) |
|
35 # define _USE_OLD_RW_STL |
|
36 #endif |
|
37 |
|
38 #if (__BORLANDC__ >= 0x560) |
|
39 # define NOWINBASEINTERLOCK // src/fstream.cpp error in winbase.h |
|
40 #endif |
|
41 |
|
42 #if (__BORLANDC__ < 0x564) |
|
43 # define _STLP_QUALIFIED_SPECIALIZATION_BUG |
|
44 #endif |
|
45 |
|
46 #if (__BORLANDC__ < 0x560) |
|
47 # define _STLP_NO_CONTAINERS_EXTENSION |
|
48 #endif |
|
49 |
|
50 #define _STLP_NO_FUNCTION_TMPL_PARTIAL_ORDER |
|
51 #define _STLP_DONT_USE_PRIV_NAMESPACE |
|
52 #define _STLP_NO_VENDOR_STDLIB_L |
|
53 #define _STLP_NO_VENDOR_MATH_F |
|
54 #define _STLP_DONT_USE_SHORT_STRING_OPTIM 1 |
|
55 #define _STLP_NO_NATIVE_MBSTATE_T |
|
56 #define _STLP_DLLEXPORT_NEEDS_PREDECLARATION |
|
57 #undef _STLP_NO_UNEXPECTED_EXCEPT_SUPPORT |
|
58 #if (__BORLANDC__ < 0x580) && !defined (_RTLDLL) |
|
59 # define _UNCAUGHT_EXCEPTION 1 |
|
60 #endif |
|
61 |
|
62 // <limits> problem |
|
63 #define _STLP_STATIC_CONST_INIT_BUG |
|
64 |
|
65 // <bitset> problems |
|
66 #define _STLP_MEMBER_SPECIALIZATION_BUG 1 |
|
67 #define _STLP_HAS_SPECIFIC_PROLOG_EPILOG 1 |
|
68 |
|
69 #define _STLP_LONG_LONG __int64 |
|
70 |
|
71 // auto enable thread safety and exceptions: |
|
72 #ifndef _CPPUNWIND |
|
73 # define _STLP_HAS_NO_EXCEPTIONS |
|
74 #endif |
|
75 |
|
76 #if defined (__MT__) && !defined (_NOTHREADS) && !defined (_REENTRANT) |
|
77 # if defined (_STLP_VERBOSE) |
|
78 # pragma message ("multi threaded") |
|
79 # endif |
|
80 # define _REENTRANT 1 |
|
81 #else |
|
82 # if defined (_STLP_VERBOSE) |
|
83 # pragma message ("single threaded") |
|
84 # endif |
|
85 #endif |
|
86 |
|
87 #define _STLP_EXPORT_DECLSPEC __declspec(dllexport) |
|
88 #define _STLP_IMPORT_DECLSPEC __declspec(dllimport) |
|
89 |
|
90 #define _STLP_CLASS_EXPORT_DECLSPEC __declspec(dllexport) |
|
91 #define _STLP_CLASS_IMPORT_DECLSPEC __declspec(dllimport) |
|
92 |
|
93 #if defined (_DLL) |
|
94 # define _STLP_DLL |
|
95 #endif |
|
96 #if defined (_RTLDLL) |
|
97 # define _STLP_RUNTIME_DLL |
|
98 #endif |
|
99 #include <stl/config/_detect_dll_or_lib.h> |
|
100 #undef _STLP_RUNTIME_DLL |
|
101 #undef _STLP_DLL |
|
102 |
|
103 #if defined (_STLP_USE_DYNAMIC_LIB) |
|
104 # if defined (_STLP_VERBOSE) |
|
105 # pragma message ("Using/Building STLport dll") |
|
106 # endif |
|
107 #elif defined (_STLP_USE_STATIC_LIB) |
|
108 # if defined (_STLP_VERBOSE) |
|
109 # pragma message ("Using/Building STLport lib") |
|
110 # endif |
|
111 #else |
|
112 # error Unknown STLport usage config (dll/lib?) |
|
113 #endif |
|
114 |
|
115 #if defined (_STLP_USING_CROSS_NATIVE_RUNTIME_LIB) |
|
116 # if defined (_STLP_VERBOSE) |
|
117 # pragma message ("Using cross version of native runtime") |
|
118 # endif |
|
119 #endif |
|
120 |
|
121 #if !defined (_STLP_IMPORT_TEMPLATE_KEYWORD) |
|
122 //# define _STLP_IMPORT_TEMPLATE_KEYWORD __declspec(dllimport) |
|
123 #endif |
|
124 //#define _STLP_EXPORT_TEMPLATE_KEYWORD __declspec(dllexport) |
|
125 |
|
126 #if defined (_STLP_USE_DYNAMIC_LIB) |
|
127 # define _STLP_USE_DECLSPEC 1 |
|
128 # if (__BORLANDC__ < 0x580) |
|
129 # if defined (__BUILDING_STLPORT) |
|
130 # define _STLP_CALL __cdecl __export |
|
131 # else |
|
132 # define _STLP_CALL __cdecl __import |
|
133 # endif |
|
134 #else |
|
135 # define _STLP_CALL __cdecl |
|
136 #endif |
|
137 #else |
|
138 # define _STLP_CALL __cdecl |
|
139 #endif |
|
140 |
|
141 #include <stl/config/_auto_link.h> |