epoc32/include/tools/stlport/stl/config/_como.h
branchSymbian2
changeset 2 2fe1408b6811
child 4 837f303aceeb
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/epoc32/include/tools/stlport/stl/config/_como.h	Tue Mar 16 16:12:26 2010 +0000
     1.3 @@ -0,0 +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 +