diff -r 666f914201fb -r 2fe1408b6811 epoc32/include/stdapis/stlport/config/stlcomp.h --- a/epoc32/include/stdapis/stlport/config/stlcomp.h Tue Nov 24 13:55:44 2009 +0000 +++ b/epoc32/include/stdapis/stlport/config/stlcomp.h Tue Mar 16 16:12:26 2010 +0000 @@ -1,1 +1,185 @@ -stlcomp.h +/* + * © Portions copyright (c) 2006-2007 Nokia Corporation. All rights reserved. + * + * Copyright (c) 1997 + * Moscow Center for SPARC Technology + * + * Copyright (c) 1999 + * Boris Fomitchev + * + * This material is provided "as is", with absolutely no warranty expressed + * or implied. Any use is at your own risk. + * + * Permission to use or copy this software for any purpose is hereby granted + * without fee, provided the above notices are retained on all copies. + * Permission to modify the code and to distribute modified code is granted, + * provided the above notices are retained, and a notice that the code was + * modified is included with the above copyright notice. + * + */ + +/* + * Purpose of this file : + * + * To hold COMPILER-SPECIFIC portion of STLport settings. + * In general, user should not edit this file unless + * using the compiler not recognized below. + * + * If your compiler is not being recognized yet, + * please look for definitions of macros in stl_mycomp.h, + * copy stl_mycomp.h to stl_YOUR_COMPILER_NAME, + * adjust flags for your compiler, and add + * to the secton controlled by unique macro defined internaly by your compiler. + * + * To change user-definable settings, please edit <../stl_user_config.h> + * + */ + +#ifndef _STLP_COMP_H +# define _STLP_COMP_H + +#ifdef __SYMBIAN32__ +#ifndef __NO_THROW +#define __NO_THROW throw() +#endif //__NO_THROW +#ifndef NONSHARABLE_CLASS +#define NONSHARABLE_CLASS(x) class x +#endif +# include <_ansi.h> +#else +# define EXPORT_C +# define IMPORT_C +#endif + +#if 0 +#ifdef __SYMBIAN32__ +#warning __SYMBIAN32__ +#endif + +#ifdef EKA2 +#warning EKA2 +#endif + +#ifdef __WINSCW__ +#warning __WINSCW__ +#endif + + +#ifdef __MWERKS__ +#warning __MWERKS__ +#endif + +#ifdef __CC_ARM +#warning __CC_ARM +#endif + +#ifdef __ARMCC__ +#warning __ARMCC__ +#endif +#endif + + +# define __GIVE_UP_WITH_STL(message) void give_up() \ + { upgrade_the_compiler_to_use_STL;} + +/* distinguish real MSC from Metrowerks and Intel */ +# if defined(_MSC_VER) && !defined(__MWERKS__) && !defined (__ICL) && !defined (__COMO__) +# define _STLP_MSVC _MSC_VER +# endif + +# if defined (__xlC__) || defined (__IBMC__) || defined ( __IBMCPP__ ) +/* AIX xlC, Visual Age C++ , OS-390 C++ */ +# include +# elif defined (__INTEL_COMPILER) && defined(__unix__) +/* Check intel before gcc, since newer versions define GNUC */ +# include +# elif !defined(__SYMBIAN32__) && defined (__GNUC__ ) +# include +# elif defined (__KCC) +# include +# elif defined(__sgi) +# include +# elif (defined(__OS400__)) +/* AS/400 C++ */ +# include +# elif defined(_STLP_MSVC) +/* Microsoft Visual C++ 4.0, 4.1, 4.2, 5.0 */ +# include +# elif defined ( __BORLANDC__ ) +/* Borland C++ ( 4.x - 5.x ) */ +# include +# elif defined(__SUNPRO_CC) || defined (__SUNPRO_C) +/* SUN CC 4.0.1-5.0 */ +# include +# elif defined (__WATCOM_CPLUSPLUS__) || defined (__WATCOMC__) +/* Watcom C++ */ +# include +# elif defined(__COMO__) || defined (__COMO_VERSION_) +# include +# elif defined (__DMC__) +/* Digital Mars C++ */ +# include +# elif defined (__SC__) && (__SC__ < 0x800) +/* Symantec 7.5 */ +# include +# elif defined (__MRC__) || (defined (__SC__) && (__SC__ >= 0x882)) +/* Apple MPW SCpp 8.8.2 + * Apple MPW MrCpp 4.1.0 */ +# include +# elif defined(__SYMBIAN32__) && defined(EKA2) && defined (__GCCE__) +# include +# elif defined(__SYMBIAN32__) && defined(EKA2) && defined (__WINSCW__) +/* Metrowerks CodeWarrior for Symbian EKA2 */ + +//# warning ********** USING METROWERKS COMPILER ********** +# include +//# warning ***************************************** + +#elif defined (__SYMBIAN32__) && defined(EKA2) && defined(__ARMCC__) +/* ARM RVCT for Symbian EKA2 */ +//# warning ********** USING RVCT COMPILER ********** +# include + +#elif defined (__SYMBIAN32__) + +/* NO-OP: This is just for the Symbian build process, to silence + the warning that no compiler config file is available during + the include dependency check step. The warning is generated + because the preprocesser is being used to process the files + with no compiler flag set. +*/ + +# elif defined(__hpux) +/* HP compilers */ +# include +# elif defined(__ICL) +/* Intel reference compiler for Win */ +# include +/* SCO UDK 7 compiler (UnixWare 7x, OSR 5, UnixWare 2x) */ +# elif defined(__USLC__) +# include +/* Apogee 4.x */ +# elif defined (__APOGEE__) +# include +# elif defined (__DECCXX) || defined (__DECC) +# ifdef __vms +# include +# else +# include +# endif +# elif defined (__ISCPP__) +# include +# elif defined (__FCC_VERSION) +/* Fujutsu Compiler, v4.0 assumed */ +# include +# elif defined(_CRAY) +/* Cray C++ 3.4 or 3.5 */ +# include +# else +/* Unable to identify the compiler, issue error diagnostic. + * Edit to set STLport up for your compiler. */ +# include +# endif /* end of compiler choice */ +# undef __GIVE_UP_WITH_STL +#endif +