/home/ntakagi/work/STLport-5.1.5/stlport/stl/config/_solaris.h

Go to the documentation of this file.
00001 #ifndef __stl_config__solaris_h
00002 #define __stl_config__solaris_h
00003 
00004 #define _STLP_PLATFORM "Sun Solaris"
00005 
00006 /* include system features file */
00007 #include <sys/feature_tests.h>
00008 
00009 /* system-dependent defines */
00010 
00011 /*
00012  * Should be fixed:
00013  * 1. __SunOS_5_x not defined, and no way to derive this from headers only;
00014  *    define it with -D on compiler command line is a bad idea too.
00015  *
00016  * 2. Solaris may has, but may hasn't MATH_F and MATH_L functions (even with two
00017  *    underscores)---this depends upon system update level and seems legally present
00018  *    only in Solaris 10 (i.e. I saw Solaris 9 with and without __acosf in libm.so.1)
00019  *
00020  *              - ptr
00021  */
00022 
00023 #if defined (__SunOS_5_8) && ! defined (_STLP_HAS_NO_NEW_C_HEADERS) && ( __cplusplus >= 199711L)
00024 #  define _STLP_HAS_NATIVE_FLOAT_ABS
00025 #endif
00026 
00027 #if defined(_XOPEN_SOURCE) && (_XOPEN_VERSION - 0 >= 4)
00028 # define _STLP_RAND48 1
00029 #endif
00030 
00031 #if (defined(_XOPEN_SOURCE) && (_XOPEN_VERSION - 0 == 4)) || defined (__SunOS_5_6)
00032 # define _STLP_WCHAR_SUNPRO_EXCLUDE 1
00033 # define _STLP_NO_NATIVE_WIDE_FUNCTIONS 1
00034 #endif
00035 
00036 /* boris : this should always be defined for Solaris 5 & 6. Any ideas how to do it? */
00037 #if !(defined ( __KCC ) && __KCC_VERSION > 3400 ) && \
00038   ((defined(__SunOS_5_5_1) || defined(__SunOS_5_6) ))
00039 #  ifndef _STLP_NO_NATIVE_MBSTATE_T
00040 #    define _STLP_NO_NATIVE_MBSTATE_T 1
00041 #  endif
00042 #endif /* KCC */
00043 
00044 /* For SPARC we use lightweight synchronization */
00045 #if defined (__sparc) /* && (defined (_REENTRANT) || defined (_PTHREADS)) */
00046 #  if ( (defined (__GNUC__) && defined (__sparc_v9__)) || \
00047         defined (__sparcv9) ) \
00048        && !defined(_NOTHREADS) && !defined (_STLP_NO_SPARC_SOLARIS_THREADS)
00049 #    define _STLP_SPARC_SOLARIS_THREADS
00050 #    define _STLP_THREADS_DEFINED
00051 #  endif
00052 #endif
00053 
00054 /* gcc does not support ELF64 yet ; however; it supports ultrasparc + v8plus.
00055  * limits.h contains invalid values for this combination
00056  */
00057 #ifdef __GNUC__
00058 #  if (defined  (__sparc_v9__) || defined (__sparcv9)) && !defined ( __WORD64 ) && !defined(__arch64__)
00059 #    define __LONG_MAX__ 2147483647L
00060 #  endif
00061 #endif
00062 
00063 /*
00064  * Hmm, I don't found in Solaris 9 system headers definition like __SunOS_5_9
00065  * (defined in SunPro?); I also can't find functions like fmodf (again,
00066  * I found modff in libc, but no acosf etc.). Strange, I saw __cosf functions
00067  * (built-in?) at least with gcc some time ago, but don't see ones with
00068  * gcc 3.3.2 on SunOS sparc-solaris1 5.9 Generic_112233-03 sun4u sparc SUNW,Ultra-60
00069  * from Sorceforge's CF.
00070  *    2005-12-15, - ptr
00071  *
00072  * P.S. That's why I add two defines:
00073  */
00074 
00075 /* #ifdef __GNUC__ */
00076 #define _STLP_NO_VENDOR_MATH_F
00077 #define _STLP_NO_VENDOR_MATH_L
00078 /* #endif */
00079 
00080 #ifdef __GNUC__
00081 #  define _STLP_WCHAR_BORLAND_EXCLUDE
00082 #  define _STLP_NO_NATIVE_WIDE_FUNCTIONS 1
00083 #endif
00084 
00085 #endif /* __stl_config__solaris_h */



Generated on Mon Mar 10 15:32:46 2008 by  doxygen 1.5.1