|
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 #define _STLP_COMPILER "Dec" |
|
18 |
|
19 # define _STLP_HAS_SPECIFIC_PROLOG_EPILOG |
|
20 |
|
21 # define _STLP_NATIVE_HEADER(header) <../cxx/##header> |
|
22 # define _STLP_NATIVE_C_HEADER(x) <../include/##x> |
|
23 |
|
24 #if (__DECCXX_VER < 60300000) |
|
25 # define _STLP_NATIVE_CPP_C_HEADER(header) <../cxx/##header> |
|
26 #else |
|
27 # define _STLP_NATIVE_CPP_C_HEADER(header) </usr/include/cxx_cname/##header> |
|
28 #endif |
|
29 |
|
30 # define _STLP_NATIVE_OLD_STREAMS_HEADER(header) <../cxx/##header> |
|
31 # define _STLP_NATIVE_CPP_RUNTIME_HEADER(header) <../cxx/##header> |
|
32 |
|
33 // Alpha is little-endian |
|
34 # define _STLP_LITTLE_ENDIAN |
|
35 |
|
36 // collisions |
|
37 # define _STLP_DONT_PUT_STLPORT_IN_STD |
|
38 |
|
39 #if (__DECCXX_VER < 60000000) |
|
40 |
|
41 // automatic template instantiation does not |
|
42 // work with namespaces ;( |
|
43 # define _STLP_HAS_NO_NAMESPACES 1 |
|
44 |
|
45 # define _STLP_NO_NEW_NEW_HEADER 1 |
|
46 |
|
47 # define _STLP_NO_WCHAR_T 1 |
|
48 # define _STLP_NEED_EXPLICIT 1 |
|
49 |
|
50 # define _STLP_NO_BOOL 1 |
|
51 # define _STLP_NEED_TYPENAME 1 |
|
52 # define _STLP_NO_NEW_STYLE_CASTS 1 |
|
53 # define _STLP_NEED_MUTABLE 1 |
|
54 # define _STLP_NO_BAD_ALLOC 1 |
|
55 |
|
56 |
|
57 # define _STLP_NO_PARTIAL_SPECIALIZATION_SYNTAX 1 |
|
58 |
|
59 # define _STLP_NO_MEMBER_TEMPLATES 1 |
|
60 # define _STLP_NO_MEMBER_TEMPLATE_CLASSES 1 |
|
61 # define _STLP_NO_MEMBER_TEMPLATE_KEYWORD 1 |
|
62 # define _STLP_NO_FRIEND_TEMPLATES 1 |
|
63 # define _STLP_NO_QUALIFIED_FRIENDS 1 |
|
64 # define _STLP_NO_CLASS_PARTIAL_SPECIALIZATION 1 |
|
65 # define _STLP_NO_FUNCTION_TMPL_PARTIAL_ORDER 1 |
|
66 # define _STLP_NON_TYPE_TMPL_PARAM_BUG 1 |
|
67 # define _STLP_BROKEN_USING_DIRECTIVE 1 |
|
68 # define _STLP_NO_EXCEPTION_HEADER 1 |
|
69 # define _STLP_DEF_CONST_PLCT_NEW_BUG 1 |
|
70 # define _STLP_DEF_CONST_DEF_PARAM_BUG 1 |
|
71 |
|
72 #endif |
|
73 |
|
74 |
|
75 #ifdef __NO_USE_STD_IOSTREAM |
|
76 # define _STLP_HAS_NO_NEW_IOSTREAMS 1 |
|
77 # else |
|
78 // default is to use new iostreams, anyway |
|
79 # ifndef __USE_STD_IOSTREAM |
|
80 # define __USE_STD_IOSTREAM |
|
81 # endif |
|
82 #endif |
|
83 |
|
84 //# ifndef __STD_STRICT_ANSI_ERRORS |
|
85 //# endif |
|
86 |
|
87 #ifndef __EXCEPTIONS |
|
88 # define _STLP_HAS_NO_EXCEPTIONS 1 |
|
89 #endif |
|
90 |
|
91 # ifdef __IMPLICIT_INCLUDE_ENABLED |
|
92 |
|
93 // but, works with ours ;). |
|
94 # define _STLP_LINK_TIME_INSTANTIATION 1 |
|
95 # else |
|
96 # undef _STLP_LINK_TIME_INSTANTIATION |
|
97 # endif |
|
98 |
|
99 # if defined (__IMPLICIT_USING_STD) && !defined (__NO_USE_STD_IOSTREAM) |
|
100 // we should ban that ! |
|
101 // # error "STLport won't work with new iostreams and std:: being implicitly included. Please use -std strict_ansi[_errors] or specify __NO_USE_STD_IOSTREAM" |
|
102 # endif |
|
103 |
|
104 # if (defined (__STD_STRICT_ANSI) || defined (__STD_STRICT_ANSI_ERRORS)) |
|
105 # define _STLP_STRICT_ANSI 1 |
|
106 # else |
|
107 // we want to enforce it |
|
108 # define _STLP_LONG_LONG long long |
|
109 # endif |
|
110 |
|
111 // unsigned 32-bit integer type |
|
112 # define _STLP_UINT32_T unsigned int |
|
113 #if defined(_XOPEN_SOURCE) && (_XOPEN_VERSION - 0 >= 4) |
|
114 # define _STLP_RAND48 1 |
|
115 #endif |
|
116 // # define _STLP_RAND48 1 |
|
117 |
|
118 # define _STLP_NO_EXPLICIT_FUNCTION_TMPL_ARGS 1 |
|
119 |
|
120 # if (__DECCXX_VER <= 60600000) |
|
121 # define _STLP_HAS_NO_NEW_C_HEADERS 1 |
|
122 # endif |
|
123 |