epoc32/include/gcc_mingw/gcc_mingw_3_4_2.h
author William Roberts <williamr@symbian.org>
Wed, 31 Mar 2010 12:33:34 +0100
branchSymbian3
changeset 4 837f303aceeb
parent 2 2fe1408b6811
permissions -rw-r--r--
Current Symbian^3 public API header files (from PDK 3.0.h)
This is the epoc32/include tree with the "platform" subtrees removed, and
all but a selected few mbg and rsg files removed.
     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 "Symbian Foundation License v1.0" to Symbian Foundation members and "Symbian Foundation End User License Agreement v1.0" to non-members
     5 // which accompanies this distribution, and is available
     6 // at the URL "http://www.symbianfoundation.org/legal/licencesv10.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 
    20 /**
    21  @file
    22  @publishedAll
    23  @released
    24 */
    25 
    26 // compiler and STLport things first 
    27 #define _STLP_THREADS
    28 #define _STLP_DESIGNATED_DLL
    29 
    30 // Pick up relevant macros under __GCC32__, since __GCC32__ is not a valid macro for TOOLS2
    31 
    32 #define __NO_CLASS_CONSTS__
    33 #define __NORETURN__  __attribute__ ((noreturn))
    34 #ifdef __GCCV3__
    35 #define __NORETURN_TERMINATOR()
    36 #else
    37 #define __NORETURN_TERMINATOR()		abort()
    38 #endif
    39 #define IMPORT_C
    40 #if !defined __WINS__ && defined _WIN32 /* VC++ Browser Hack */
    41 #define EXPORT_C
    42 /** @internalTechnology */
    43 #define asm(x)
    44 #else
    45 #define EXPORT_C __declspec(dllexport)
    46 #endif
    47 #define NONSHARABLE_CLASS(x) class x
    48 #define NONSHARABLE_STRUCT(x) struct x
    49 #define __NO_THROW
    50 #define __DOUBLE_WORDS_SWAPPED__
    51 typedef long long Int64;
    52 typedef unsigned long long Uint64;
    53 #define	I64LIT(x)	x##LL
    54 #define	UI64LIT(x)	x##ULL
    55 #define TEMPLATE_SPECIALIZATION template<>
    56 #define __TText_defined
    57 typedef wchar_t __TText;
    58 
    59 
    60 #include <exception>
    61 
    62 // A few extras for compiling on Windows
    63 //#ifdef __TOOLS2_WINDOWS__
    64 //#define _STLP_LITTLE_ENDIAN
    65 //#define __MINGW__
    66 //#endif
    67 
    68 // Symbian things next ///////////////////////////////////////////////////////
    69 
    70 #ifdef __PRODUCT_INCLUDE__
    71 #include __PRODUCT_INCLUDE__
    72 #endif
    73 
    74 // Do not use inline new in e32cmn.h
    75 #define __PLACEMENT_NEW_INLINE
    76 #define __PLACEMENT_VEC_NEW_INLINE
    77 // avoid e32tools/filesystem/include/mingw.inl nonsense
    78 #define _MINGW_INL
    79 
    80 // the end of the pre-include