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