1.1 --- a/epoc32/include/stdapis/stlport/config/stlcomp.h Tue Nov 24 13:55:44 2009 +0000
1.2 +++ b/epoc32/include/stdapis/stlport/config/stlcomp.h Tue Mar 16 16:12:26 2010 +0000
1.3 @@ -1,1 +1,185 @@
1.4 -stlcomp.h
1.5 +/*
1.6 + * © Portions copyright (c) 2006-2007 Nokia Corporation. All rights reserved.
1.7 + *
1.8 + * Copyright (c) 1997
1.9 + * Moscow Center for SPARC Technology
1.10 + *
1.11 + * Copyright (c) 1999
1.12 + * Boris Fomitchev
1.13 + *
1.14 + * This material is provided "as is", with absolutely no warranty expressed
1.15 + * or implied. Any use is at your own risk.
1.16 + *
1.17 + * Permission to use or copy this software for any purpose is hereby granted
1.18 + * without fee, provided the above notices are retained on all copies.
1.19 + * Permission to modify the code and to distribute modified code is granted,
1.20 + * provided the above notices are retained, and a notice that the code was
1.21 + * modified is included with the above copyright notice.
1.22 + *
1.23 + */
1.24 +
1.25 +/*
1.26 + * Purpose of this file :
1.27 + *
1.28 + * To hold COMPILER-SPECIFIC portion of STLport settings.
1.29 + * In general, user should not edit this file unless
1.30 + * using the compiler not recognized below.
1.31 + *
1.32 + * If your compiler is not being recognized yet,
1.33 + * please look for definitions of macros in stl_mycomp.h,
1.34 + * copy stl_mycomp.h to stl_YOUR_COMPILER_NAME,
1.35 + * adjust flags for your compiler, and add <include config/stl_YOUR_COMPILER_NAME>
1.36 + * to the secton controlled by unique macro defined internaly by your compiler.
1.37 + *
1.38 + * To change user-definable settings, please edit <../stl_user_config.h>
1.39 + *
1.40 + */
1.41 +
1.42 +#ifndef _STLP_COMP_H
1.43 +# define _STLP_COMP_H
1.44 +
1.45 +#ifdef __SYMBIAN32__
1.46 +#ifndef __NO_THROW
1.47 +#define __NO_THROW throw()
1.48 +#endif //__NO_THROW
1.49 +#ifndef NONSHARABLE_CLASS
1.50 +#define NONSHARABLE_CLASS(x) class x
1.51 +#endif
1.52 +# include <_ansi.h>
1.53 +#else
1.54 +# define EXPORT_C
1.55 +# define IMPORT_C
1.56 +#endif
1.57 +
1.58 +#if 0
1.59 +#ifdef __SYMBIAN32__
1.60 +#warning __SYMBIAN32__
1.61 +#endif
1.62 +
1.63 +#ifdef EKA2
1.64 +#warning EKA2
1.65 +#endif
1.66 +
1.67 +#ifdef __WINSCW__
1.68 +#warning __WINSCW__
1.69 +#endif
1.70 +
1.71 +
1.72 +#ifdef __MWERKS__
1.73 +#warning __MWERKS__
1.74 +#endif
1.75 +
1.76 +#ifdef __CC_ARM
1.77 +#warning __CC_ARM
1.78 +#endif
1.79 +
1.80 +#ifdef __ARMCC__
1.81 +#warning __ARMCC__
1.82 +#endif
1.83 +#endif
1.84 +
1.85 +
1.86 +# define __GIVE_UP_WITH_STL(message) void give_up() \
1.87 + { upgrade_the_compiler_to_use_STL;}
1.88 +
1.89 +/* distinguish real MSC from Metrowerks and Intel */
1.90 +# if defined(_MSC_VER) && !defined(__MWERKS__) && !defined (__ICL) && !defined (__COMO__)
1.91 +# define _STLP_MSVC _MSC_VER
1.92 +# endif
1.93 +
1.94 +# if defined (__xlC__) || defined (__IBMC__) || defined ( __IBMCPP__ )
1.95 +/* AIX xlC, Visual Age C++ , OS-390 C++ */
1.96 +# include <config/stl_ibm.h>
1.97 +# elif defined (__INTEL_COMPILER) && defined(__unix__)
1.98 +/* Check intel before gcc, since newer versions define GNUC */
1.99 +# include <config/stl_icc.h>
1.100 +# elif !defined(__SYMBIAN32__) && defined (__GNUC__ )
1.101 +# include <config/stl_gcc.h>
1.102 +# elif defined (__KCC)
1.103 +# include <config/stl_kai.h>
1.104 +# elif defined(__sgi)
1.105 +# include <config/stl_sgi.h>
1.106 +# elif (defined(__OS400__))
1.107 +/* AS/400 C++ */
1.108 +# include <config/stl_as400.h>
1.109 +# elif defined(_STLP_MSVC)
1.110 +/* Microsoft Visual C++ 4.0, 4.1, 4.2, 5.0 */
1.111 +# include <config/stl_msvc.h>
1.112 +# elif defined ( __BORLANDC__ )
1.113 +/* Borland C++ ( 4.x - 5.x ) */
1.114 +# include <config/stl_bc.h>
1.115 +# elif defined(__SUNPRO_CC) || defined (__SUNPRO_C)
1.116 +/* SUN CC 4.0.1-5.0 */
1.117 +# include <config/stl_sunpro.h>
1.118 +# elif defined (__WATCOM_CPLUSPLUS__) || defined (__WATCOMC__)
1.119 +/* Watcom C++ */
1.120 +# include <config/stl_watcom.h>
1.121 +# elif defined(__COMO__) || defined (__COMO_VERSION_)
1.122 +# include <config/stl_como.h>
1.123 +# elif defined (__DMC__)
1.124 +/* Digital Mars C++ */
1.125 +# include <config/stl_dm.h>
1.126 +# elif defined (__SC__) && (__SC__ < 0x800)
1.127 +/* Symantec 7.5 */
1.128 +# include <config/stl_symantec.h>
1.129 +# elif defined (__MRC__) || (defined (__SC__) && (__SC__ >= 0x882))
1.130 +/* Apple MPW SCpp 8.8.2
1.131 + * Apple MPW MrCpp 4.1.0 */
1.132 +# include <config/stl_apple.h>
1.133 +# elif defined(__SYMBIAN32__) && defined(EKA2) && defined (__GCCE__)
1.134 +# include <config/stl_gcce.h>
1.135 +# elif defined(__SYMBIAN32__) && defined(EKA2) && defined (__WINSCW__)
1.136 +/* Metrowerks CodeWarrior for Symbian EKA2 */
1.137 +
1.138 +//# warning ********** USING METROWERKS COMPILER **********
1.139 +# include <config/stl_winscw.h>
1.140 +//# warning *****************************************
1.141 +
1.142 +#elif defined (__SYMBIAN32__) && defined(EKA2) && defined(__ARMCC__)
1.143 +/* ARM RVCT for Symbian EKA2 */
1.144 +//# warning ********** USING RVCT COMPILER **********
1.145 +# include <config/stl_rvct.h>
1.146 +
1.147 +#elif defined (__SYMBIAN32__)
1.148 +
1.149 +/* NO-OP: This is just for the Symbian build process, to silence
1.150 + the warning that no compiler config file is available during
1.151 + the include dependency check step. The warning is generated
1.152 + because the preprocesser is being used to process the files
1.153 + with no compiler flag set.
1.154 +*/
1.155 +
1.156 +# elif defined(__hpux)
1.157 +/* HP compilers */
1.158 +# include <config/stl_hpacc.h>
1.159 +# elif defined(__ICL)
1.160 +/* Intel reference compiler for Win */
1.161 +# include <config/stl_intel.h>
1.162 +/* SCO UDK 7 compiler (UnixWare 7x, OSR 5, UnixWare 2x) */
1.163 +# elif defined(__USLC__)
1.164 +# include <config/stl_sco.h>
1.165 +/* Apogee 4.x */
1.166 +# elif defined (__APOGEE__)
1.167 +# include <config/stl_apcc.h>
1.168 +# elif defined (__DECCXX) || defined (__DECC)
1.169 +# ifdef __vms
1.170 +# include <config/stl_dec_vms.h>
1.171 +# else
1.172 +# include <config/stl_dec.h>
1.173 +# endif
1.174 +# elif defined (__ISCPP__)
1.175 +# include <config/stl_is.h>
1.176 +# elif defined (__FCC_VERSION)
1.177 +/* Fujutsu Compiler, v4.0 assumed */
1.178 +# include <config/stl_fujitsu.h>
1.179 +# elif defined(_CRAY)
1.180 +/* Cray C++ 3.4 or 3.5 */
1.181 +# include <config/stl_cray.h>
1.182 +# else
1.183 +/* Unable to identify the compiler, issue error diagnostic.
1.184 + * Edit <config/stl_mycomp.h> to set STLport up for your compiler. */
1.185 +# include <config/stl_mycomp.h>
1.186 +# endif /* end of compiler choice */
1.187 +# undef __GIVE_UP_WITH_STL
1.188 +#endif
1.189 +