1 #ifndef __stl_config__solaris_h
2 #define __stl_config__solaris_h
4 #define _STLP_PLATFORM "Sun Solaris"
6 /* include system features file */
7 #include <sys/feature_tests.h>
9 /* system-dependent defines */
10 #define _STLP_USE_UNIX_IO
14 * See comments (and configuration defines) in the host.h
16 # if !(defined(__SunOS_5_5_1) || defined(__SunOS_5_6) || defined(__SunOS_5_7) || \
17 defined(__SunOS_5_8) || defined(__SunOS_5_9) || defined(__SunOS_5_10))
18 # error Uncomment one of the defines (__SunOS_5_x) in the file stlport/stl/config/host.h
22 #if defined (__SunOS_5_8) && ! defined (_STLP_HAS_NO_NEW_C_HEADERS) && ( __cplusplus >= 199711L)
23 # define _STLP_HAS_NATIVE_FLOAT_ABS
26 #if defined(_XOPEN_SOURCE) && (_XOPEN_VERSION - 0 >= 4)
27 # define _STLP_RAND48 1
30 #if (defined(_XOPEN_SOURCE) && (_XOPEN_VERSION - 0 == 4)) || defined (__SunOS_5_6)
31 # define _STLP_WCHAR_SUNPRO_EXCLUDE 1
32 # define _STLP_NO_NATIVE_WIDE_FUNCTIONS 1
35 /* boris : this should always be defined for Solaris 5 & 6. Any ideas how to do it? */
36 #if !(defined ( __KCC ) && __KCC_VERSION > 3400 ) && \
37 ((defined(__SunOS_5_5_1) || defined(__SunOS_5_6) ))
38 # ifndef _STLP_NO_NATIVE_MBSTATE_T
39 # define _STLP_NO_NATIVE_MBSTATE_T 1
43 /* For SPARC we use lightweight synchronization */
44 #if defined (__sparc) /* && (defined (_REENTRANT) || defined (_PTHREADS)) */
45 # if ( (defined (__GNUC__) && defined (__sparc_v9__)) || \
46 defined (__sparcv9) ) \
47 && !defined(_NOTHREADS) && !defined (_STLP_NO_SPARC_SOLARIS_THREADS)
48 # define _STLP_SPARC_SOLARIS_THREADS
49 # define _STLP_THREADS_DEFINED
53 /* gcc does not support ELF64 yet ; however; it supports ultrasparc + v8plus.
54 * limits.h contains invalid values for this combination
57 # if (defined (__sparc_v9__) || defined (__sparcv9)) && !defined ( __WORD64 ) && !defined(__arch64__)
58 # define __LONG_MAX__ 2147483647L
63 * Attention! See comments (and configuration defines) in the host.h
64 * (you host may has MATH_F and MATH_L functions)
67 #if !defined(__SunOS_5_10) && !defined(_STLP_SOLARIS_MATH_PATCH)
68 # define _STLP_NO_VENDOR_MATH_F
69 # define _STLP_NO_VENDOR_MATH_L
73 # define _STLP_WCHAR_BORLAND_EXCLUDE
74 # define _STLP_NO_NATIVE_WIDE_FUNCTIONS 1
77 #endif /* __stl_config__solaris_h */