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