williamr@2: // Copyright (c) 2006-2009 Nokia Corporation and/or its subsidiary(-ies). williamr@2: // All rights reserved. williamr@2: // This component and the accompanying materials are made available williamr@2: // 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@2: // which accompanies this distribution, and is available williamr@2: // at the URL "http://www.symbianfoundation.org/legal/licencesv10.html". williamr@2: // williamr@2: // Initial Contributors: williamr@2: // Nokia Corporation - initial contribution. williamr@2: // williamr@2: // Contributors: williamr@2: // williamr@2: // Description: williamr@2: // This is the preinclude file for the MinGW GCC compiler williamr@2: // williamr@2: // williamr@2: williamr@2: williamr@2: williamr@2: /** williamr@2: @file williamr@2: @publishedAll williamr@2: @released williamr@2: */ williamr@2: williamr@2: // compiler and STLport things first williamr@2: #define _STLP_THREADS williamr@2: #define _STLP_DESIGNATED_DLL williamr@2: williamr@2: // Pick up relevant macros under __GCC32__, since __GCC32__ is not a valid macro for TOOLS2 williamr@2: williamr@2: #define __NO_CLASS_CONSTS__ williamr@2: #define __NORETURN__ __attribute__ ((noreturn)) williamr@2: #ifdef __GCCV3__ williamr@2: #define __NORETURN_TERMINATOR() williamr@2: #else williamr@2: #define __NORETURN_TERMINATOR() abort() williamr@2: #endif williamr@2: #define IMPORT_C williamr@2: #if !defined __WINS__ && defined _WIN32 /* VC++ Browser Hack */ williamr@2: #define EXPORT_C williamr@2: /** @internalTechnology */ williamr@2: #define asm(x) williamr@2: #else williamr@2: #define EXPORT_C __declspec(dllexport) williamr@2: #endif williamr@2: #define NONSHARABLE_CLASS(x) class x williamr@2: #define NONSHARABLE_STRUCT(x) struct x williamr@2: #define __NO_THROW williamr@2: #define __DOUBLE_WORDS_SWAPPED__ williamr@2: typedef long long Int64; williamr@2: typedef unsigned long long Uint64; williamr@2: #define I64LIT(x) x##LL williamr@2: #define UI64LIT(x) x##ULL williamr@2: #define TEMPLATE_SPECIALIZATION template<> williamr@2: #define __TText_defined williamr@2: typedef wchar_t __TText; williamr@2: williamr@2: williamr@2: #include williamr@2: williamr@2: // A few extras for compiling on Windows williamr@2: //#ifdef __TOOLS2_WINDOWS__ williamr@2: //#define _STLP_LITTLE_ENDIAN williamr@2: //#define __MINGW__ williamr@2: //#endif williamr@2: williamr@2: // Symbian things next /////////////////////////////////////////////////////// williamr@2: williamr@2: #ifdef __PRODUCT_INCLUDE__ williamr@2: #include __PRODUCT_INCLUDE__ williamr@2: #endif williamr@2: williamr@2: // Do not use inline new in e32cmn.h williamr@2: #define __PLACEMENT_NEW_INLINE williamr@2: #define __PLACEMENT_VEC_NEW_INLINE williamr@2: // avoid e32tools/filesystem/include/mingw.inl nonsense williamr@2: #define _MINGW_INL williamr@2: williamr@2: // the end of the pre-include