1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000
1.2 +++ b/epoc32/include/tools/stlport/stl/config/_solaris.h Tue Mar 16 16:12:26 2010 +0000
1.3 @@ -0,0 +1,85 @@
1.4 +#ifndef __stl_config__solaris_h
1.5 +#define __stl_config__solaris_h
1.6 +
1.7 +#define _STLP_PLATFORM "Sun Solaris"
1.8 +
1.9 +/* include system features file */
1.10 +#include <sys/feature_tests.h>
1.11 +
1.12 +/* system-dependent defines */
1.13 +
1.14 +/*
1.15 + * Should be fixed:
1.16 + * 1. __SunOS_5_x not defined, and no way to derive this from headers only;
1.17 + * define it with -D on compiler command line is a bad idea too.
1.18 + *
1.19 + * 2. Solaris may has, but may hasn't MATH_F and MATH_L functions (even with two
1.20 + * underscores)---this depends upon system update level and seems legally present
1.21 + * only in Solaris 10 (i.e. I saw Solaris 9 with and without __acosf in libm.so.1)
1.22 + *
1.23 + * - ptr
1.24 + */
1.25 +
1.26 +#if defined (__SunOS_5_8) && ! defined (_STLP_HAS_NO_NEW_C_HEADERS) && ( __cplusplus >= 199711L)
1.27 +# define _STLP_HAS_NATIVE_FLOAT_ABS
1.28 +#endif
1.29 +
1.30 +#if defined(_XOPEN_SOURCE) && (_XOPEN_VERSION - 0 >= 4)
1.31 +# define _STLP_RAND48 1
1.32 +#endif
1.33 +
1.34 +#if (defined(_XOPEN_SOURCE) && (_XOPEN_VERSION - 0 == 4)) || defined (__SunOS_5_6)
1.35 +# define _STLP_WCHAR_SUNPRO_EXCLUDE 1
1.36 +# define _STLP_NO_NATIVE_WIDE_FUNCTIONS 1
1.37 +#endif
1.38 +
1.39 +/* boris : this should always be defined for Solaris 5 & 6. Any ideas how to do it? */
1.40 +#if !(defined ( __KCC ) && __KCC_VERSION > 3400 ) && \
1.41 + ((defined(__SunOS_5_5_1) || defined(__SunOS_5_6) ))
1.42 +# ifndef _STLP_NO_NATIVE_MBSTATE_T
1.43 +# define _STLP_NO_NATIVE_MBSTATE_T 1
1.44 +# endif
1.45 +#endif /* KCC */
1.46 +
1.47 +/* For SPARC we use lightweight synchronization */
1.48 +#if defined (__sparc) /* && (defined (_REENTRANT) || defined (_PTHREADS)) */
1.49 +# if ( (defined (__GNUC__) && defined (__sparc_v9__)) || \
1.50 + defined (__sparcv9) ) \
1.51 + && !defined(_NOTHREADS) && !defined (_STLP_NO_SPARC_SOLARIS_THREADS)
1.52 +# define _STLP_SPARC_SOLARIS_THREADS
1.53 +# define _STLP_THREADS_DEFINED
1.54 +# endif
1.55 +#endif
1.56 +
1.57 +/* gcc does not support ELF64 yet ; however; it supports ultrasparc + v8plus.
1.58 + * limits.h contains invalid values for this combination
1.59 + */
1.60 +#ifdef __GNUC__
1.61 +# if (defined (__sparc_v9__) || defined (__sparcv9)) && !defined ( __WORD64 )
1.62 +# define __LONG_MAX__ 2147483647L
1.63 +# endif
1.64 +#endif
1.65 +
1.66 +/*
1.67 + * Hmm, I don't found in Solaris 9 system headers definition like __SunOS_5_9
1.68 + * (defined in SunPro?); I also can't find functions like fmodf (again,
1.69 + * I found modff in libc, but no acosf etc.). Strange, I saw __cosf functions
1.70 + * (built-in?) at least with gcc some time ago, but don't see ones with
1.71 + * gcc 3.3.2 on SunOS sparc-solaris1 5.9 Generic_112233-03 sun4u sparc SUNW,Ultra-60
1.72 + * from Sorceforge's CF.
1.73 + * 2005-12-15, - ptr
1.74 + *
1.75 + * P.S. That's why I add two defines:
1.76 + */
1.77 +
1.78 +/* #ifdef __GNUC__ */
1.79 +#define _STLP_NO_VENDOR_MATH_F
1.80 +#define _STLP_NO_VENDOR_MATH_L
1.81 +/* #endif */
1.82 +
1.83 +#ifdef __GNUC__
1.84 +# define _STLP_WCHAR_BORLAND_EXCLUDE
1.85 +# define _STLP_NO_NATIVE_WIDE_FUNCTIONS 1
1.86 +#endif
1.87 +
1.88 +#endif /* __stl_config__solaris_h */