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