home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: 10 Tools / 10-Tools.zip / stlpt453.zip / STLport-4.5.3 / stlport / config / stl_solaris.h < prev    next >
C/C++ Source or Header  |  2001-11-13  |  1KB  |  37 lines

  1.  
  2. // include system features file
  3. # include <sys/feature_tests.h>
  4.  
  5. // system-dependent defines 
  6.  
  7. # if defined (__SunOS_5_8) && ! defined (_STLP_HAS_NO_NEW_C_HEADERS) && ( __cplusplus >= 199711L)
  8. #  define _STLP_HAS_NATIVE_FLOAT_ABS
  9. # endif
  10.  
  11. #if defined(_XOPEN_SOURCE) && (_XOPEN_VERSION - 0 >= 4)
  12. # define _STLP_RAND48 1
  13. #endif
  14.  
  15. #if (defined(_XOPEN_SOURCE) && (_XOPEN_VERSION - 0 == 4)) || defined (__SunOS_5_6)
  16. # define _STLP_WCHAR_SUNPRO_EXCLUDE 1
  17. # define _STLP_NO_NATIVE_WIDE_FUNCTIONS 1
  18. #endif
  19.  
  20. // boris : this should always be defined for Solaris 5 & 6. Any ideas how to do it ?
  21. # if !(defined ( __KCC ) && __KCC_VERSION > 3400 ) && \
  22.   ((defined(__SunOS_5_5_1) || defined(__SunOS_5_6) ))
  23. #  ifndef _STLP_NO_NATIVE_MBSTATE_T
  24. #   define _STLP_NO_NATIVE_MBSTATE_T 1
  25. #  endif
  26. # endif /* KCC */
  27.  
  28. // For SPARC we use lightweight synchronization
  29. # if defined (__sparc) /* &&  (defined (_REENTRANT) || defined (_PTHREADS)) */ \
  30.      && ((defined (__GNUC__) && defined (__sparc_v9__)) || \
  31.      ((defined (__sparcv9) || defined (__sparcv8plus)) && ! defined (_STLP_NO_OWN_IOSTREAMS)) ) \
  32.      && !defined(_NOTHREADS) && ! defined (_STLP_NO_SPARC_SOLARIS_THREADS)
  33. #  define _STLP_SPARC_SOLARIS_THREADS
  34. #  define _STLP_THREADS_DEFINED
  35. # endif
  36.  
  37.