1#ifndef __stl_config__solaris_h
2#define __stl_config__solaris_h
3
4#define _STLP_PLATFORM "Sun Solaris"
5
6/* include system features file */
7#include <sys/feature_tests.h>
8
9/* system-dependent defines */
10#define _STLP_USE_UNIX_IO
11
12#ifdef __GNUC__
13/*
14 * See comments (and configuration defines) in the host.h
15 */
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
19#  endif
20#endif
21
22#if defined (__SunOS_5_8) && ! defined (_STLP_HAS_NO_NEW_C_HEADERS) && ( __cplusplus >= 199711L)
23#  define _STLP_HAS_NATIVE_FLOAT_ABS
24#endif
25
26#if defined(_XOPEN_SOURCE) && (_XOPEN_VERSION - 0 >= 4)
27# define _STLP_RAND48 1
28#endif
29
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
33#endif
34
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
40#  endif
41#endif /* KCC */
42
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
50#  endif
51#endif
52
53/* gcc does not support ELF64 yet ; however; it supports ultrasparc + v8plus.
54 * limits.h contains invalid values for this combination
55 */
56#ifdef __GNUC__
57#  if (defined  (__sparc_v9__) || defined (__sparcv9)) && !defined ( __WORD64 ) && !defined(__arch64__)
58#    define __LONG_MAX__ 2147483647L
59#  endif
60#endif
61
62/*
63 * Attention! See comments (and configuration defines) in the host.h
64 * (you host may has MATH_F and MATH_L functions)
65 *
66 */
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
70#endif
71
72#ifdef __GNUC__
73#  define _STLP_WCHAR_BORLAND_EXCLUDE
74#  define _STLP_NO_NATIVE_WIDE_FUNCTIONS 1
75#endif
76
77#endif /* __stl_config__solaris_h */
78