epoc32/include/tools/stlport/stl/config/_como.h
branchSymbian3
changeset 4 837f303aceeb
parent 2 2fe1408b6811
     1.1 --- a/epoc32/include/tools/stlport/stl/config/_como.h	Wed Mar 31 12:27:01 2010 +0100
     1.2 +++ b/epoc32/include/tools/stlport/stl/config/_como.h	Wed Mar 31 12:33:34 2010 +0100
     1.3 @@ -1,207 +1,207 @@
     1.4 -
     1.5 -// STLport configuration file
     1.6 -// It is internal STLport header - DO NOT include it directly
     1.7 -
     1.8 -#define _STLP_COMPILER "Comeau"
     1.9 -
    1.10 -#include <stl/config/_native_headers.h>
    1.11 -
    1.12 -#define _STLP_UINT32_T unsigned int
    1.13 -
    1.14 -#define _STLP_HAS_NO_NEW_C_HEADERS
    1.15 -// #define _STLP_VENDOR_GLOBAL_EXCEPT_STD
    1.16 -#define _STLP_LONG_LONG long long
    1.17 -
    1.18 -
    1.19 -//
    1.20 -// ADDITIONS FOR COMEAU C++, made by Comeau Computing.
    1.21 -// We can be reached through comeau@comeaucomputing.com
    1.22 -// You shouldn't need to change anything below here for Comeau C++.
    1.23 -// If you do, please tell us at comeau@comeaucomputing.com
    1.24 -//
    1.25 -// Changes made here, AND THROUGH ALL FILES, based upon the __COMO__ macro
    1.26 -// (and SIMILAR NAMES INVOLVING COMO).... no doubt some of this will
    1.27 -// change as SGI integrates the changes into their code base since
    1.28 -// some changes are not really Comeau C++ specific, but required to
    1.29 -// make the SGI code compliant with Standard C++).
    1.30 -//
    1.31 -// Testing was done with Comeau C++ 4.2.44 and 4.2.45.2.  Changes were made for
    1.32 -// both Comeau relaxed mode and Comeau strict mode, especially for end user code
    1.33 -// (that is, some of the .cxx files cannot compile in strict mode, because they
    1.34 -// contain extensions to Standard C++, however their object code forms can
    1.35 -// be used once compiled in relaxed mode, even if the end user code uses
    1.36 -// strict mode).
    1.37 -//
    1.38 -// These changes may also work for some earlier versions of Comeau C++,
    1.39 -// though we have not tested them.
    1.40 -//
    1.41 -// Actual mods made under RedHat 6.1 LINUX, should be ok with SuSE too and
    1.42 -// other LINUX's, and older Caldera LINUX, Solaris/SPARC, SunOS, SCO UNIX,
    1.43 -// and NetBSD. Other platforms may be added.  Comeau will also perform
    1.44 -// custom ports for you.
    1.45 -//
    1.46 -// Check libcomo details at http://www.comeaucomputing.com/libcomo and
    1.47 -// http://www.comeaucomputing.com
    1.48 -//
    1.49 -// History of Comeau changes (this is rough, as work was often going on in parallel):
    1.50 -// BETA1 July 14, 2000, Initial port for RedHat 6.1 INTEL/ELF
    1.51 -// BETA2 Aug   4, 2000, Stronger RedHat support
    1.52 -//                      Support for Comeau strict mode for end user code
    1.53 -// BETA3 Aug  22, 2000, Support for other LINUX/INTEL/ELF's, including older ones
    1.54 -// BETA4 Sept  2, 2000, Initial support for SCO UNIX + other UNIX x86 SVR3's
    1.55 -//                      Stronger support for end user Comeau strict mode
    1.56 -// BETA5 Oct   5, 2000, Initial support for Solaris/SPARC
    1.57 -//                      More SCO support (though still incomplete)
    1.58 -// BETA6 Feb   5, 2001, Minor mods to accomodate Comeau C++ 4.2.45.1
    1.59 -// BETA7 Mar  13, 2001, Verified with Comeau C++ 4.2.45.2
    1.60 -//                      Minor NetBSD support
    1.61 -// BETA8 Apr   1. 2001, Initial support for SunOS/SPARC
    1.62 -// BETA9 Apr   7, 2001, Stronger SCO support + other UNIX x86 SVR3's
    1.63 -//                      Mods for an fpos_t problem for some LINUXes
    1.64 -//                      Mods since Destroy did not work in strict mode
    1.65 -// BETA10 Apr  12. 2001, Stronger NetBSD support
    1.66 -//
    1.67 -// PLANNED:
    1.68 -// BETAx TBA  TBA, 2001, NetBSD, UNIXWARE, and Windows support expected
    1.69 -//
    1.70 -
    1.71 -
    1.72 -#ifdef __linux__
    1.73 -
    1.74 -#   define _STLP_NO_NATIVE_MBSTATE_T      1
    1.75 -#   define _STLP_NO_NATIVE_WIDE_FUNCTIONS 1
    1.76 -#   define _STLP_NO_NATIVE_WIDE_STREAMS   1
    1.77 -#   define _STLP_NO_LONG_DOUBLE   1
    1.78 -
    1.79 -// Comeau C++ under LINUX/INTEL/ELF
    1.80 -// Preprocess away "long long" routines for now, even in relaxed mode
    1.81 -# define __wcstoull_internal_defined  1
    1.82 -# define __wcstoll_internal_defined  1
    1.83 -
    1.84 -#endif /* __COMO__ under __linux__ */
    1.85 -
    1.86 -#ifdef __USING_x86SVR3x_WITH_COMO /* SCO et al */
    1.87 -/* UNIX 386+ SVR3 mods made with __USING_x86SVR3x_WITH_COMO
    1.88 -   in other sources, not here */
    1.89 -#    define atan2l atan2
    1.90 -#    define cosl cos
    1.91 -#    define sinl sin
    1.92 -#    define sqrtl sqrt
    1.93 -#    include <math.h>
    1.94 -     inline long double expl(long double arg) { return exp(arg); }
    1.95 -     inline long double logl(long double arg) { return log(arg); }
    1.96 -#    define log10l log10
    1.97 -
    1.98 -#    define sinhl sinh
    1.99 -#    define coshl cosh
   1.100 -#    define fabsl fabs
   1.101 -namespace std {
   1.102 - inline int min(int a, int b) { return a>b ? b : a; }
   1.103 -}
   1.104 -#endif
   1.105 -
   1.106 -#ifdef sun
   1.107 -// Comeau C++ under Solaris/SPARC or SunOS
   1.108 -
   1.109 -#ifdef solarissparc
   1.110 -#define __USING_SOLARIS_SPARC_WITH_COMO /* show this in the source when grep'ing for COMO */
   1.111 -// Note comowchar.h for Solaris/SPARC wchar stuff
   1.112 -
   1.113 -#include <math.h>
   1.114 -#    define sinf sin
   1.115 -#    define sinl sin
   1.116 -#    define sinhf sinh
   1.117 -#    define sinhl sinh
   1.118 -#    define cosf cos
   1.119 -#    define cosl cos
   1.120 -#    define coshf cosh
   1.121 -#    define coshl cosh
   1.122 -#    define atan2l atan2
   1.123 -#    define atan2f atan2
   1.124 -     inline float logf(float arg) { return log(arg); }
   1.125 -     inline long double logl(long double arg) { return log(arg); }
   1.126 -#    define log10f log10
   1.127 -#    define log10l log10
   1.128 -#    define expf exp
   1.129 -     inline long double expl(long double arg) { return exp(arg); }
   1.130 -#    define sqrtf sqrt
   1.131 -#    define sqrtl sqrt
   1.132 -#    define fabsf fabs
   1.133 -#    define fabsl fabs
   1.134 -#else
   1.135 -#define __USING_SUNOS_WITH_COMO
   1.136 -
   1.137 -#define __unix 1
   1.138 -#define __EXTENSIONS__ /* This might create undue noise somewhere */
   1.139 -#endif
   1.140 -#endif /* sun */
   1.141 -
   1.142 -#if defined(__NetBSD__)
   1.143 -// From non-como #ifdef __GNUC__ above
   1.144 -#undef _STLP_NO_FUNCTION_PTR_IN_CLASS_TEMPLATE
   1.145 -#define __unix 1
   1.146 -
   1.147 -#include <sys/cdefs.h>
   1.148 -// Some joker #define'd __END_DECLS as };
   1.149 -#undef __END_DECLS
   1.150 -#define __END_DECLS }
   1.151 -
   1.152 -// <sys/stat.h> prob
   1.153 -#include <sys/cdefs.h>
   1.154 -#undef __RENAME
   1.155 -#define __RENAME(x)
   1.156 -
   1.157 -#define wchar_t __COMO_WCHAR_T
   1.158 -#include <stddef.h>
   1.159 -#undef wchar_t
   1.160 -
   1.161 -#include <math.h>
   1.162 -# ifdef BORIS_DISABLED
   1.163 -#    define atan2l atan2
   1.164 -#    define cosl cos
   1.165 -#    define sinl sin
   1.166 -#    define sqrtl sqrt
   1.167 -     inline long double expl(long double arg) { return exp(arg); }
   1.168 -     inline long double logl(long double arg) { return log(arg); }
   1.169 -#    define log10l log10
   1.170 -#    define sinhl sinh
   1.171 -#    define coshl cosh
   1.172 -#    define fabsl fabs
   1.173 -# endif
   1.174 -#endif /* __NetBSD__ under __COMO__ */
   1.175 -
   1.176 -// Shouldn't need to change anything below here for Comeau C++
   1.177 -// If so, tell us at comeau@comeaucomputing.com
   1.178 -
   1.179 -#define _STLP_NO_DRAND48
   1.180 -
   1.181 -#define _STLP_PARTIAL_SPECIALIZATION_SYNTAX
   1.182 -#define _STLP_NO_USING_CLAUSE_IN_CLASS
   1.183 -
   1.184 -#if __COMO_VERSION__ < 4300
   1.185 -#if __COMO_VERSION__ >= 4245
   1.186 -#define _STLP_NO_EXCEPTION_HEADER /**/
   1.187 -    // Is this needed?
   1.188 -#   include <stdexcept.stdh>
   1.189 -#endif
   1.190 -#define _STLP_NO_BAD_ALLOC /**/
   1.191 -#define _STLP_USE_AUTO_PTR_CONVERSIONS /**/
   1.192 -#endif
   1.193 -
   1.194 -// this one is true only with MS
   1.195 -# if defined (_MSC_VER)
   1.196 -#  define _STLP_WCHAR_T_IS_USHORT 1
   1.197 -#  if _MSC_VER <= 1200
   1.198 -#   define _STLP_VENDOR_GLOBAL_CSTD
   1.199 -#  endif
   1.200 -#  if _MSC_VER < 1100
   1.201 -#   define _STLP_NO_BAD_ALLOC 1
   1.202 -#   define _STLP_NO_EXCEPTION_HEADER 1
   1.203 -#   define _STLP_NO_NEW_NEW_HEADER 1
   1.204 -#   define _STLP_USE_NO_IOSTREAMS 1
   1.205 -#  endif
   1.206 -# endif
   1.207 -
   1.208 -// # define __EDG_SWITCHES
   1.209 -
   1.210 -
   1.211 +
   1.212 +// STLport configuration file
   1.213 +// It is internal STLport header - DO NOT include it directly
   1.214 +
   1.215 +#define _STLP_COMPILER "Comeau"
   1.216 +
   1.217 +#include <stl/config/_native_headers.h>
   1.218 +
   1.219 +#define _STLP_UINT32_T unsigned int
   1.220 +
   1.221 +#define _STLP_HAS_NO_NEW_C_HEADERS
   1.222 +// #define _STLP_VENDOR_GLOBAL_EXCEPT_STD
   1.223 +#define _STLP_LONG_LONG long long
   1.224 +
   1.225 +
   1.226 +//
   1.227 +// ADDITIONS FOR COMEAU C++, made by Comeau Computing.
   1.228 +// We can be reached through comeau@comeaucomputing.com
   1.229 +// You shouldn't need to change anything below here for Comeau C++.
   1.230 +// If you do, please tell us at comeau@comeaucomputing.com
   1.231 +//
   1.232 +// Changes made here, AND THROUGH ALL FILES, based upon the __COMO__ macro
   1.233 +// (and SIMILAR NAMES INVOLVING COMO).... no doubt some of this will
   1.234 +// change as SGI integrates the changes into their code base since
   1.235 +// some changes are not really Comeau C++ specific, but required to
   1.236 +// make the SGI code compliant with Standard C++).
   1.237 +//
   1.238 +// Testing was done with Comeau C++ 4.2.44 and 4.2.45.2.  Changes were made for
   1.239 +// both Comeau relaxed mode and Comeau strict mode, especially for end user code
   1.240 +// (that is, some of the .cxx files cannot compile in strict mode, because they
   1.241 +// contain extensions to Standard C++, however their object code forms can
   1.242 +// be used once compiled in relaxed mode, even if the end user code uses
   1.243 +// strict mode).
   1.244 +//
   1.245 +// These changes may also work for some earlier versions of Comeau C++,
   1.246 +// though we have not tested them.
   1.247 +//
   1.248 +// Actual mods made under RedHat 6.1 LINUX, should be ok with SuSE too and
   1.249 +// other LINUX's, and older Caldera LINUX, Solaris/SPARC, SunOS, SCO UNIX,
   1.250 +// and NetBSD. Other platforms may be added.  Comeau will also perform
   1.251 +// custom ports for you.
   1.252 +//
   1.253 +// Check libcomo details at http://www.comeaucomputing.com/libcomo and
   1.254 +// http://www.comeaucomputing.com
   1.255 +//
   1.256 +// History of Comeau changes (this is rough, as work was often going on in parallel):
   1.257 +// BETA1 July 14, 2000, Initial port for RedHat 6.1 INTEL/ELF
   1.258 +// BETA2 Aug   4, 2000, Stronger RedHat support
   1.259 +//                      Support for Comeau strict mode for end user code
   1.260 +// BETA3 Aug  22, 2000, Support for other LINUX/INTEL/ELF's, including older ones
   1.261 +// BETA4 Sept  2, 2000, Initial support for SCO UNIX + other UNIX x86 SVR3's
   1.262 +//                      Stronger support for end user Comeau strict mode
   1.263 +// BETA5 Oct   5, 2000, Initial support for Solaris/SPARC
   1.264 +//                      More SCO support (though still incomplete)
   1.265 +// BETA6 Feb   5, 2001, Minor mods to accomodate Comeau C++ 4.2.45.1
   1.266 +// BETA7 Mar  13, 2001, Verified with Comeau C++ 4.2.45.2
   1.267 +//                      Minor NetBSD support
   1.268 +// BETA8 Apr   1. 2001, Initial support for SunOS/SPARC
   1.269 +// BETA9 Apr   7, 2001, Stronger SCO support + other UNIX x86 SVR3's
   1.270 +//                      Mods for an fpos_t problem for some LINUXes
   1.271 +//                      Mods since Destroy did not work in strict mode
   1.272 +// BETA10 Apr  12. 2001, Stronger NetBSD support
   1.273 +//
   1.274 +// PLANNED:
   1.275 +// BETAx TBA  TBA, 2001, NetBSD, UNIXWARE, and Windows support expected
   1.276 +//
   1.277 +
   1.278 +
   1.279 +#ifdef __linux__
   1.280 +
   1.281 +#   define _STLP_NO_NATIVE_MBSTATE_T      1
   1.282 +#   define _STLP_NO_NATIVE_WIDE_FUNCTIONS 1
   1.283 +#   define _STLP_NO_NATIVE_WIDE_STREAMS   1
   1.284 +#   define _STLP_NO_LONG_DOUBLE   1
   1.285 +
   1.286 +// Comeau C++ under LINUX/INTEL/ELF
   1.287 +// Preprocess away "long long" routines for now, even in relaxed mode
   1.288 +# define __wcstoull_internal_defined  1
   1.289 +# define __wcstoll_internal_defined  1
   1.290 +
   1.291 +#endif /* __COMO__ under __linux__ */
   1.292 +
   1.293 +#ifdef __USING_x86SVR3x_WITH_COMO /* SCO et al */
   1.294 +/* UNIX 386+ SVR3 mods made with __USING_x86SVR3x_WITH_COMO
   1.295 +   in other sources, not here */
   1.296 +#    define atan2l atan2
   1.297 +#    define cosl cos
   1.298 +#    define sinl sin
   1.299 +#    define sqrtl sqrt
   1.300 +#    include <math.h>
   1.301 +     inline long double expl(long double arg) { return exp(arg); }
   1.302 +     inline long double logl(long double arg) { return log(arg); }
   1.303 +#    define log10l log10
   1.304 +
   1.305 +#    define sinhl sinh
   1.306 +#    define coshl cosh
   1.307 +#    define fabsl fabs
   1.308 +namespace std {
   1.309 + inline int min(int a, int b) { return a>b ? b : a; }
   1.310 +}
   1.311 +#endif
   1.312 +
   1.313 +#ifdef sun
   1.314 +// Comeau C++ under Solaris/SPARC or SunOS
   1.315 +
   1.316 +#ifdef solarissparc
   1.317 +#define __USING_SOLARIS_SPARC_WITH_COMO /* show this in the source when grep'ing for COMO */
   1.318 +// Note comowchar.h for Solaris/SPARC wchar stuff
   1.319 +
   1.320 +#include <math.h>
   1.321 +#    define sinf sin
   1.322 +#    define sinl sin
   1.323 +#    define sinhf sinh
   1.324 +#    define sinhl sinh
   1.325 +#    define cosf cos
   1.326 +#    define cosl cos
   1.327 +#    define coshf cosh
   1.328 +#    define coshl cosh
   1.329 +#    define atan2l atan2
   1.330 +#    define atan2f atan2
   1.331 +     inline float logf(float arg) { return log(arg); }
   1.332 +     inline long double logl(long double arg) { return log(arg); }
   1.333 +#    define log10f log10
   1.334 +#    define log10l log10
   1.335 +#    define expf exp
   1.336 +     inline long double expl(long double arg) { return exp(arg); }
   1.337 +#    define sqrtf sqrt
   1.338 +#    define sqrtl sqrt
   1.339 +#    define fabsf fabs
   1.340 +#    define fabsl fabs
   1.341 +#else
   1.342 +#define __USING_SUNOS_WITH_COMO
   1.343 +
   1.344 +#define __unix 1
   1.345 +#define __EXTENSIONS__ /* This might create undue noise somewhere */
   1.346 +#endif
   1.347 +#endif /* sun */
   1.348 +
   1.349 +#if defined(__NetBSD__)
   1.350 +// From non-como #ifdef __GNUC__ above
   1.351 +#undef _STLP_NO_FUNCTION_PTR_IN_CLASS_TEMPLATE
   1.352 +#define __unix 1
   1.353 +
   1.354 +#include <sys/cdefs.h>
   1.355 +// Some joker #define'd __END_DECLS as };
   1.356 +#undef __END_DECLS
   1.357 +#define __END_DECLS }
   1.358 +
   1.359 +// <sys/stat.h> prob
   1.360 +#include <sys/cdefs.h>
   1.361 +#undef __RENAME
   1.362 +#define __RENAME(x)
   1.363 +
   1.364 +#define wchar_t __COMO_WCHAR_T
   1.365 +#include <stddef.h>
   1.366 +#undef wchar_t
   1.367 +
   1.368 +#include <math.h>
   1.369 +# ifdef BORIS_DISABLED
   1.370 +#    define atan2l atan2
   1.371 +#    define cosl cos
   1.372 +#    define sinl sin
   1.373 +#    define sqrtl sqrt
   1.374 +     inline long double expl(long double arg) { return exp(arg); }
   1.375 +     inline long double logl(long double arg) { return log(arg); }
   1.376 +#    define log10l log10
   1.377 +#    define sinhl sinh
   1.378 +#    define coshl cosh
   1.379 +#    define fabsl fabs
   1.380 +# endif
   1.381 +#endif /* __NetBSD__ under __COMO__ */
   1.382 +
   1.383 +// Shouldn't need to change anything below here for Comeau C++
   1.384 +// If so, tell us at comeau@comeaucomputing.com
   1.385 +
   1.386 +#define _STLP_NO_DRAND48
   1.387 +
   1.388 +#define _STLP_PARTIAL_SPECIALIZATION_SYNTAX
   1.389 +#define _STLP_NO_USING_CLAUSE_IN_CLASS
   1.390 +
   1.391 +#if __COMO_VERSION__ < 4300
   1.392 +#if __COMO_VERSION__ >= 4245
   1.393 +#define _STLP_NO_EXCEPTION_HEADER /**/
   1.394 +    // Is this needed?
   1.395 +#   include <stdexcept.stdh>
   1.396 +#endif
   1.397 +#define _STLP_NO_BAD_ALLOC /**/
   1.398 +#define _STLP_USE_AUTO_PTR_CONVERSIONS /**/
   1.399 +#endif
   1.400 +
   1.401 +// this one is true only with MS
   1.402 +# if defined (_MSC_VER)
   1.403 +#  define _STLP_WCHAR_T_IS_USHORT 1
   1.404 +#  if _MSC_VER <= 1200
   1.405 +#   define _STLP_VENDOR_GLOBAL_CSTD
   1.406 +#  endif
   1.407 +#  if _MSC_VER < 1100
   1.408 +#   define _STLP_NO_BAD_ALLOC 1
   1.409 +#   define _STLP_NO_EXCEPTION_HEADER 1
   1.410 +#   define _STLP_NO_NEW_NEW_HEADER 1
   1.411 +#   define _STLP_USE_NO_IOSTREAMS 1
   1.412 +#  endif
   1.413 +# endif
   1.414 +
   1.415 +// # define __EDG_SWITCHES
   1.416 +
   1.417 +