epoc32/include/tools/stlport/stl/config/_sunprocc.h
branchSymbian2
changeset 2 2fe1408b6811
child 4 837f303aceeb
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/epoc32/include/tools/stlport/stl/config/_sunprocc.h	Tue Mar 16 16:12:26 2010 +0000
     1.3 @@ -0,0 +1,161 @@
     1.4 +// STLport configuration file
     1.5 +// It is internal STLport header - DO NOT include it directly
     1.6 +
     1.7 +#define _STLP_COMPILER "Sunpro CC"
     1.8 +
     1.9 +#define _STLP_LONG_LONG  long long
    1.10 +
    1.11 +// GAB: 11/09/05
    1.12 +// Starting with 5.0 the STLport code expects to be
    1.13 +// instantiated during compile time. This is due to undefing
    1.14 +// a number of defines that are also used in the c versions
    1.15 +// of the file. When they are undefed the c version fails to
    1.16 +// compile.
    1.17 +// #  define _STLP_LINK_TIME_INSTANTIATION 1
    1.18 +
    1.19 +#if ! defined(_BOOL)
    1.20 +#  define _STLP_NO_BOOL 1
    1.21 +#endif
    1.22 +
    1.23 +// compatibility mode stuff
    1.24 +#if (__SUNPRO_CC >= 0x510) && (!defined (__SUNPRO_CC_COMPAT) || (__SUNPRO_CC_COMPAT == 5 ))
    1.25 +#  define _STLP_NATIVE_INCLUDE_PATH ../CC/Cstd
    1.26 +#  define _STLP_NATIVE_CPP_RUNTIME_INCLUDE_PATH ../CC
    1.27 +#elif (__SUNPRO_CC >= 0x500) && (!defined (__SUNPRO_CC_COMPAT) || (__SUNPRO_CC_COMPAT == 5 ))
    1.28 +#  define _STLP_NATIVE_INCLUDE_PATH ../CC
    1.29 +#elif (defined (__SUNPRO_CC_COMPAT) && __SUNPRO_CC_COMPAT == 4)
    1.30 +#  define _STLP_NATIVE_INCLUDE_PATH ../CC4
    1.31 +#else
    1.32 +#  define _STLP_NATIVE_INCLUDE_PATH ../CC
    1.33 +#endif
    1.34 +
    1.35 +#define _STLP_STATIC_CONST_INIT_BUG 1
    1.36 +
    1.37 +#if (__SUNPRO_CC < 0x530)
    1.38 +// those are tested and proved not to work...
    1.39 +#  define _STLP_NO_CLASS_PARTIAL_SPECIALIZATION 1
    1.40 +#  define _STLP_NO_MEMBER_TEMPLATE_CLASSES 1
    1.41 +#  define _STLP_USE_OLD_HP_ITERATOR_QUERIES
    1.42 +#endif
    1.43 +
    1.44 +#ifdef _STLP_USE_NO_IOSTREAMS
    1.45 +#  define _STLP_HAS_NO_NEW_C_HEADERS 1
    1.46 +#endif
    1.47 +
    1.48 +// those do not depend on compatibility
    1.49 +#if (__SUNPRO_CC < 0x510)
    1.50 +#  define _STLP_NO_TYPENAME_ON_RETURN_TYPE 1
    1.51 +#  define _STLP_NONTEMPL_BASE_MATCH_BUG 1
    1.52 +#endif
    1.53 +
    1.54 +#if (__SUNPRO_CC < 0x510) || (defined (__SUNPRO_CC_COMPAT) && (__SUNPRO_CC_COMPAT < 5))
    1.55 +
    1.56 +#  define _STLP_NO_QUALIFIED_FRIENDS 1
    1.57 +
    1.58 +// no partial , just for explicit one
    1.59 +#  define _STLP_PARTIAL_SPEC_NEEDS_TEMPLATE_ARGS
    1.60 +#  define _STLP_NON_TYPE_TMPL_PARAM_BUG 1
    1.61 +
    1.62 +#  define _STLP_NO_MEMBER_TEMPLATES 1
    1.63 +#  define _STLP_NO_FRIEND_TEMPLATES 1
    1.64 +
    1.65 +#  define _STLP_NO_FUNCTION_TMPL_PARTIAL_ORDER 1
    1.66 +#  define _STLP_NO_EXPLICIT_FUNCTION_TMPL_ARGS
    1.67 +#  define _STLP_NO_MEMBER_TEMPLATE_KEYWORD 1
    1.68 +#endif
    1.69 +
    1.70 +// Features that depend on compatibility switch
    1.71 +#if ( __SUNPRO_CC < 0x500 ) || (defined (__SUNPRO_CC_COMPAT) && (__SUNPRO_CC_COMPAT < 5))
    1.72 +
    1.73 +#  ifndef _STLP_USE_NO_IOSTREAMS
    1.74 +#    define _STLP_USE_NO_IOSTREAMS 1
    1.75 +#  endif
    1.76 +#  define _STLP_NO_NEW_NEW_HEADER 1
    1.77 +// #  define _STLP_NO_RELOPS_NAMESPACE
    1.78 +#  define _STLP_HAS_NO_NAMESPACES 1
    1.79 +#  define _STLP_NEED_MUTABLE  1
    1.80 +#  define _STLP_NO_BAD_ALLOC 1
    1.81 +#  define _STLP_NO_EXCEPTION_HEADER 1
    1.82 +#  define _STLP_NATIVE_C_INCLUDE_PATH ../include
    1.83 +#elif (__SUNPRO_CC < 0x510)
    1.84 +// #  define _STLP_NATIVE_C_HEADER(header) <../CC/##header##.SUNWCCh>
    1.85 +#  define _STLP_NATIVE_CPP_C_HEADER(header) <../CC/##header##.SUNWCCh>
    1.86 +#  define _STLP_NATIVE_C_INCLUDE_PATH /usr/include
    1.87 +#elif defined( __SunOS_5_5_1 ) || defined( __SunOS_5_6 ) || defined( __SunOS_5_7 )
    1.88 +#  define _STLP_NATIVE_C_INCLUDE_PATH ../CC/std
    1.89 +#  define _STLP_NATIVE_CPP_C_INCLUDE_PATH ../CC/std
    1.90 +#else
    1.91 +#  define _STLP_NATIVE_C_INCLUDE_PATH /usr/include
    1.92 +#  define _STLP_NATIVE_CPP_C_INCLUDE_PATH ../CC/std
    1.93 +#endif
    1.94 +
    1.95 +#if ( __SUNPRO_CC < 0x500 )
    1.96 +
    1.97 +#  undef _STLP_NATIVE_C_HEADER
    1.98 +#  undef _STLP_NATIVE_CPP_C_HEADER
    1.99 +
   1.100 +#  define wint_t __wint_t
   1.101 +// famous CC 4.2 bug
   1.102 +#  define _STLP_INLINE_STRING_LITERAL_BUG 1
   1.103 +// /usr/include
   1.104 +#  define _STLP_NATIVE_C_INCLUDE_PATH ../include
   1.105 +
   1.106 +// 4.2 cannot handle iterator_traits<_Tp>::iterator_category as a return type ;(
   1.107 +#  define _STLP_USE_OLD_HP_ITERATOR_QUERIES
   1.108 +
   1.109 +// 4.2 does not like it
   1.110 +#  undef  _STLP_PARTIAL_SPEC_NEEDS_TEMPLATE_ARGS
   1.111 +
   1.112 +#  define _STLP_LIMITED_DEFAULT_TEMPLATES 1
   1.113 +
   1.114 +#  define _STLP_NEED_TYPENAME 1
   1.115 +#  define _STLP_NEED_EXPLICIT 1
   1.116 +#  define _STLP_NO_BAD_ALLOC 1
   1.117 +#  define _STLP_NO_ARROW_OPERATOR 1
   1.118 +
   1.119 +#  define _STLP_DEF_CONST_PLCT_NEW_BUG 1
   1.120 +#  define _STLP_DEF_CONST_DEF_PARAM_BUG 1
   1.121 +#  define _STLP_GLOBAL_NESTED_RETURN_TYPE_PARAM_BUG 1
   1.122 +#  undef  _STLP_HAS_NO_NEW_C_HEADERS
   1.123 +#  define _STLP_HAS_NO_NEW_C_HEADERS 1
   1.124 +// #  define _STLP_DONT_SIMULATE_PARTIAL_SPEC_FOR_TYPE_TRAITS
   1.125 +
   1.126 +#  if ( __SUNPRO_CC < 0x420 )
   1.127 +#    define _STLP_NO_PARTIAL_SPECIALIZATION_SYNTAX 1
   1.128 +#    define _STLP_NO_NEW_STYLE_CASTS 1
   1.129 +#    define _STLP_NO_METHOD_SPECIALIZATION 1
   1.130 +#    if ( __SUNPRO_CC > 0x401 )
   1.131 +#      if (__SUNPRO_CC==0x410)
   1.132 +#        define _STLP_BASE_TYPEDEF_OUTSIDE_BUG  1
   1.133 +#      endif
   1.134 +#    else
   1.135 +   // SUNPro C++ 4.0.1
   1.136 +#      define _STLP_BASE_MATCH_BUG          1
   1.137 +#      define _STLP_BASE_TYPEDEF_BUG        1
   1.138 +#      if (( __SUNPRO_CC < 0x401 ) && !defined(__SUNPRO_C))
   1.139 +         __GIVE_UP_WITH_STL(SUNPRO_401)
   1.140 +#      endif
   1.141 +#    endif /* 4.0.1 */
   1.142 +#  endif /* 4.2 */
   1.143 +#endif /* <  5.0 */
   1.144 +
   1.145 +#ifndef _MBSTATET_H
   1.146 +#  define _MBSTATET_H
   1.147 +#  undef _MBSTATE_T
   1.148 +#  define _MBSTATE_T
   1.149 +typedef struct __mbstate_t {
   1.150 +#  if defined(_LP64)
   1.151 +  long    __filler[4];
   1.152 +#  else
   1.153 +  int     __filler[6];
   1.154 +#  endif
   1.155 +} __mbstate_t;
   1.156 +#  ifndef _STLP_HAS_NO_NAMESPACES
   1.157 +namespace std {
   1.158 +  typedef __mbstate_t mbstate_t;
   1.159 +}
   1.160 +using std::mbstate_t;
   1.161 +#  else
   1.162 +typedef __mbstate_t mbstate_t;
   1.163 +#  endif
   1.164 +#endif  /* __MBSTATET_H */