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