# HG changeset patch # User Mike Kinghan # Date 1286456775 -3600 # Node ID cd69ee78e5c993cfa7358181113c6b5c1c35872b # Parent 86492ef8d08612cba5313921cddcec4d79400bdb gcc Pre-include header for gcc 4.4.3 diff -r 86492ef8d086 -r cd69ee78e5c9 cross-plat-dev-utils/patch-files/linux/epoc32/include/gcc/gcc_4_4_1.h --- a/cross-plat-dev-utils/patch-files/linux/epoc32/include/gcc/gcc_4_4_1.h Wed Oct 06 16:32:01 2010 +0100 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,79 +0,0 @@ -// Copyright (c) 2006-2009 Nokia Corporation and/or its subsidiary(-ies). -// All rights reserved. -// This component and the accompanying materials are made available -// under the terms of the License "Symbian Foundation License v1.0" -// which accompanies this distribution, and is available -// at the URL "http://www.symbianfoundation.org/legal/sfl-v10.html". -// -// Initial Contributors: -// Nokia Corporation - initial contribution. -// -// Contributors: -// -// Description: -// This is the preinclude file for the MinGW GCC compiler -// -// - -/** - @file - @publishedAll - @released -*/ - -// compiler and STLport things first -#define _STLP_THREADS -#define _STLP_DESIGNATED_DLL - -// Pick up relevant macros under __GCC32__, since __GCC32__ is not a valid macro for TOOLS2 - -#define __NO_CLASS_CONSTS__ -#define __NORETURN__ __attribute__ ((noreturn)) -#ifdef __GCCV3__ -#define __NORETURN_TERMINATOR() -#else -#define __NORETURN_TERMINATOR() abort() -#endif -#define IMPORT_C -#if !defined __WINS__ && defined _WIN32 /* VC++ Browser Hack */ -#define EXPORT_C -/** @internalTechnology */ -#define asm(x) -#else -#define EXPORT_C __declspec(dllexport) -#endif -#define NONSHARABLE_CLASS(x) class x -#define NONSHARABLE_STRUCT(x) struct x -#define __NO_THROW -#define __DOUBLE_WORDS_SWAPPED__ -typedef long long Int64; -typedef unsigned long long Uint64; -#define I64LIT(x) x##LL -#define UI64LIT(x) x##ULL -#define TEMPLATE_SPECIALIZATION template<> -#define __TText_defined -typedef wchar_t __TText; - - -#include - -// A few extras for compiling on Windows -//#ifdef __TOOLS2_WINDOWS__ -//#define _STLP_LITTLE_ENDIAN -//#define __MINGW__ -//#endif - -// Symbian things next /////////////////////////////////////////////////////// - -#ifdef __PRODUCT_INCLUDE__ -#include __PRODUCT_INCLUDE__ -#endif - -// Do not use inline new in e32cmn.h -#define __PLACEMENT_NEW_INLINE -#define __PLACEMENT_VEC_NEW_INLINE -// avoid e32tools/filesystem/include/mingw.inl nonsense -#define _MINGW_INL - -// the end of the pre-include - diff -r 86492ef8d086 -r cd69ee78e5c9 cross-plat-dev-utils/patch-files/linux/epoc32/include/gcc/gcc_4_4_3.h --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/cross-plat-dev-utils/patch-files/linux/epoc32/include/gcc/gcc_4_4_3.h Thu Oct 07 14:06:15 2010 +0100 @@ -0,0 +1,79 @@ +// Copyright (c) 2006-2009 Nokia Corporation and/or its subsidiary(-ies). +// All rights reserved. +// This component and the accompanying materials are made available +// under the terms of the License "Symbian Foundation License v1.0" +// which accompanies this distribution, and is available +// at the URL "http://www.symbianfoundation.org/legal/sfl-v10.html". +// +// Initial Contributors: +// Nokia Corporation - initial contribution. +// +// Contributors: +// +// Description: +// This is the preinclude file for the MinGW GCC compiler +// +// + +/** + @file + @publishedAll + @released +*/ + +// compiler and STLport things first +#define _STLP_THREADS +#define _STLP_DESIGNATED_DLL + +// Pick up relevant macros under __GCC32__, since __GCC32__ is not a valid macro for TOOLS2 + +#define __NO_CLASS_CONSTS__ +#define __NORETURN__ __attribute__ ((noreturn)) +#ifdef __GCCV3__ +#define __NORETURN_TERMINATOR() +#else +#define __NORETURN_TERMINATOR() abort() +#endif +#define IMPORT_C +#if !defined __WINS__ && defined _WIN32 /* VC++ Browser Hack */ +#define EXPORT_C +/** @internalTechnology */ +#define asm(x) +#else +#define EXPORT_C __declspec(dllexport) +#endif +#define NONSHARABLE_CLASS(x) class x +#define NONSHARABLE_STRUCT(x) struct x +#define __NO_THROW +#define __DOUBLE_WORDS_SWAPPED__ +typedef long long Int64; +typedef unsigned long long Uint64; +#define I64LIT(x) x##LL +#define UI64LIT(x) x##ULL +#define TEMPLATE_SPECIALIZATION template<> +#define __TText_defined +typedef wchar_t __TText; + + +#include + +// A few extras for compiling on Windows +//#ifdef __TOOLS2_WINDOWS__ +//#define _STLP_LITTLE_ENDIAN +//#define __MINGW__ +//#endif + +// Symbian things next /////////////////////////////////////////////////////// + +#ifdef __PRODUCT_INCLUDE__ +#include __PRODUCT_INCLUDE__ +#endif + +// Do not use inline new in e32cmn.h +#define __PLACEMENT_NEW_INLINE +#define __PLACEMENT_VEC_NEW_INLINE +// avoid e32tools/filesystem/include/mingw.inl nonsense +#define _MINGW_INL + +// the end of the pre-include +