|
1 // Copyright (c) 2006-2009 Nokia Corporation and/or its subsidiary(-ies). |
|
2 // All rights reserved. |
|
3 // This component and the accompanying materials are made available |
|
4 // under the terms of the License "Eclipse Public License v1.0" |
|
5 // which accompanies this distribution, and is available |
|
6 // at the URL "http://www.eclipse.org/legal/epl-v10.html". |
|
7 // |
|
8 // Initial Contributors: |
|
9 // Nokia Corporation - initial contribution. |
|
10 // |
|
11 // Contributors: |
|
12 // |
|
13 // Description: |
|
14 // This is the preinclude file for the MinGW GCC compiler |
|
15 // |
|
16 // |
|
17 |
|
18 /** |
|
19 @file |
|
20 @publishedAll |
|
21 @released |
|
22 */ |
|
23 |
|
24 // compiler and STLport things first |
|
25 #define _STLP_THREADS |
|
26 #define _STLP_DESIGNATED_DLL |
|
27 |
|
28 // Pick up relevant macros under __GCC32__, since __GCC32__ is not a valid macro for TOOLS2 |
|
29 |
|
30 #define __NO_CLASS_CONSTS__ |
|
31 #define __NORETURN__ __attribute__ ((noreturn)) |
|
32 #ifdef __GCCV3__ |
|
33 #define __NORETURN_TERMINATOR() |
|
34 #else |
|
35 #define __NORETURN_TERMINATOR() abort() |
|
36 #endif |
|
37 #define IMPORT_C |
|
38 #if !defined __WINS__ && defined _WIN32 /* VC++ Browser Hack */ |
|
39 #define EXPORT_C |
|
40 /** @internalTechnology */ |
|
41 #define asm(x) |
|
42 #else |
|
43 #define EXPORT_C __declspec(dllexport) |
|
44 #endif |
|
45 #define NONSHARABLE_CLASS(x) class x |
|
46 #define NONSHARABLE_STRUCT(x) struct x |
|
47 #define __NO_THROW |
|
48 #define __DOUBLE_WORDS_SWAPPED__ |
|
49 typedef long long Int64; |
|
50 typedef unsigned long long Uint64; |
|
51 #define I64LIT(x) x##LL |
|
52 #define UI64LIT(x) x##ULL |
|
53 #define TEMPLATE_SPECIALIZATION template<> |
|
54 #define __TText_defined |
|
55 typedef wchar_t __TText; |
|
56 |
|
57 |
|
58 #include <exception> |
|
59 |
|
60 // A few extras for compiling on Windows |
|
61 //#ifdef __TOOLS2_WINDOWS__ |
|
62 //#define _STLP_LITTLE_ENDIAN |
|
63 //#define __MINGW__ |
|
64 //#endif |
|
65 |
|
66 // Symbian things next /////////////////////////////////////////////////////// |
|
67 |
|
68 #ifdef __PRODUCT_INCLUDE__ |
|
69 #include __PRODUCT_INCLUDE__ |
|
70 #endif |
|
71 |
|
72 // Do not use inline new in e32cmn.h |
|
73 #define __PLACEMENT_NEW_INLINE |
|
74 #define __PLACEMENT_VEC_NEW_INLINE |
|
75 // avoid e32tools/filesystem/include/mingw.inl nonsense |
|
76 #define _MINGW_INL |
|
77 |
|
78 // the end of the pre-include |
|
79 |