epoc32/include/tools/stlport/stl/config/_hpacc.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/_hpacc.h	Tue Mar 16 16:12:26 2010 +0000
     1.3 @@ -0,0 +1,196 @@
     1.4 +// STLport configuration file
     1.5 +// It is internal STLport header - DO NOT include it directly
     1.6 +
     1.7 +#define _STLP_COMPILER "Acc"
     1.8 +
     1.9 +// system C-library dependent
    1.10 +#if defined(_XOPEN_SOURCE) && (_XOPEN_VERSION - 0 >= 4)
    1.11 +#  define _STLP_RAND48 1
    1.12 +#endif
    1.13 +// #  define _STLP_RAND48 1
    1.14 +#define _STLP_NO_NATIVE_MBSTATE_T      1
    1.15 +#define _STLP_HPACC_BROKEN_BUFEND       1
    1.16 +#define _STLP_WCHAR_HPACC_EXCLUDE      1
    1.17 +
    1.18 +// this was reported to help, just as with SUN CC 4.2
    1.19 +#define _STLP_INLINE_STRING_LITERAL_BUG
    1.20 +
    1.21 +// specific prolog is needed to select correct threads impl
    1.22 +#define _STLP_HAS_SPECIFIC_PROLOG_EPILOG
    1.23 +
    1.24 +// HP aCC with +noeh
    1.25 +#ifdef __HPACC_NOEH
    1.26 +#  define _STLP_HAS_NO_EXCEPTIONS 1
    1.27 +#endif
    1.28 +
    1.29 +// HP compilers
    1.30 +// At that point, we only know we are on HP (and _not_ using gcc,
    1.31 +// according to "stlcomp.h"
    1.32 +
    1.33 +// __HP_aCC indicate HP ANSI C++, but not always (03.xx does not
    1.34 +// define it before 3.13, for example).
    1.35 +//
    1.36 +#if defined (__HP_aCC)
    1.37 +
    1.38 +#  define _STLP_NO_FORCE_INSTANTIATE
    1.39 +#  define _STLP_LONG_LONG long long
    1.40 +#  define _STLP_NO_VENDOR_STDLIB_L
    1.41 +
    1.42 +#  if (__HP_aCC <= 30000 && __HP_aCC >= 12100)
    1.43 +
    1.44 +//Special kludge to workaround bug in aCC A.01.23, CR JAGac40634
    1.45 +#    ifdef _STLP_DEBUG
    1.46 +static void _STLP_dummy_literal() { const char *p = "x";}
    1.47 +static void _STLP_dummy_literal_2() { const char *p = "123456789"; }
    1.48 +static void _STLP_dummy_literal_3() { const char *p = "123456700000000000000089";}
    1.49 +#    endif
    1.50 +
    1.51 +#    define _STLP_HP_ACC                   0123
    1.52 +#    define _STLP_NATIVE_INCLUDE_PATH       ../include
    1.53 +#    define _STLP_VENDOR_GLOBAL_STD         1
    1.54 +#    define _STLP_VENDOR_GLOBAL_CSTD        1
    1.55 +#    define _STLP_DONT_THROW_RANGE_ERRORS   1
    1.56 +#    define _STLP_STATIC_CONST_INIT_BUG 1
    1.57 +#    if (__HP_aCC  < 12700)
    1.58 +//new flag: on most HP compilers cwchar is missing
    1.59 +#      define _STLP_NO_CWCHAR
    1.60 +#    endif
    1.61 +
    1.62 +#    define _STLP_FORCE_ALLOCATORS(t,a) \
    1.63 +  typedef typename _Alloc_traits<t,a>::_Orig _STLP_dummy_type1;\
    1.64 +  typedef typename _STLP_dummy_type1:: _STLP_TEMPLATE rebind<t>::other _STLP_dummy_type2;
    1.65 +
    1.66 +#  endif /* 123 */
    1.67 +
    1.68 +// latest version and up
    1.69 +#  if (__HP_aCC >= 32500 )
    1.70 +#    define _STLP_HP_ACC                   0325
    1.71 +
    1.72 +#    define _STLP_USE_NEW_C_HEADERS
    1.73 +
    1.74 +#    define _STLP_FORCE_ALLOCATORS(t,a) \
    1.75 +  typedef typename _Alloc_traits<t,a>::_Orig _STLP_dummy_type1;\
    1.76 +  typedef typename _STLP_dummy_type1:: _STLP_TEMPLATE rebind<t>::other _STLP_dummy_type2;
    1.77 +
    1.78 +#    if !defined ( _INCLUDE__STDC_A1_SOURCE ) // HP-UX 11i only
    1.79 +#      define _STLP_HAS_NO_UNIX98_WCHAR_EXTENSIONS
    1.80 +#    endif
    1.81 +
    1.82 +#    if defined (_HP_NAMESPACE_STD) // option -AA
    1.83 +// from now, we have a full standard lib in namespace std
    1.84 +//
    1.85 +// -AA indicates that we are compiling against Rogue Wave 2.2.1
    1.86 +// STL shipped with the HP aCC compiler. -AA tells the compiler
    1.87 +// to use the STL defined in the include_std directory.
    1.88 +//
    1.89 +#      define _STLP_NATIVE_INCLUDE_PATH ../include_std
    1.90 +
    1.91 +// #      define _STLP_HPACC_ONLY_NATIVE_STRING 1 // STLPort _string.c includes <locale>
    1.92 +#      define _STLP_HP_ACC_COMPAT            -1
    1.93 +#    else // option -Aa
    1.94 +#      define _STLP_NATIVE_INCLUDE_PATH       ../include
    1.95 +#      define _STLP_VENDOR_GLOBAL_STD         1
    1.96 +#      define _STLP_VENDOR_GLOBAL_CSTD        1
    1.97 +#      define _STLP_DONT_THROW_RANGE_ERRORS   1
    1.98 +#    endif /* _NAMESPACE_STD */
    1.99 +#  endif
   1.100 +
   1.101 +#  if (__HP_aCC >= 31400 && __HP_aCC < 32500)
   1.102 +#    define _STLP_HP_ACC 0314
   1.103 +
   1.104 +#    define _STLP_FORCE_ALLOCATORS(t,a) \
   1.105 +typedef typename _Alloc_traits<t,a>::_Orig _STLP_dummy_type1;\
   1.106 +typedef typename _STLP_dummy_type1:: _STLP_TEMPLATE rebind<t>::other _STLP_dummy_type2;
   1.107 +#    define _STLP_NO_CWCHAR
   1.108 +#    if defined (_NAMESPACE_STD) // option -AA
   1.109 +// from now, we have a full standard lib in namespace std
   1.110 +#      define _STLP_NATIVE_INCLUDE_PATH       ../include_std
   1.111 +//#      define _STLP_HPACC_ONLY_NATIVE_STRING 1 // STLPort _string.c includes <locale>
   1.112 +#      define _STLP_HP_ACC_COMPAT            -1
   1.113 +#    else // kind of compatibility mode
   1.114 +#       define _STLP_NATIVE_INCLUDE_PATH       ../include
   1.115 +#      define _STLP_VENDOR_GLOBAL_STD         1
   1.116 +#      define _STLP_VENDOR_GLOBAL_CSTD        1
   1.117 +#      define _STLP_DONT_THROW_RANGE_ERRORS   1
   1.118 +#      define _STLP_NO_ROPE                   1
   1.119 +#    endif /* _NAMESPACE_STD */
   1.120 +#  endif /* 314 */
   1.121 +
   1.122 +#  if ((__HP_aCC >= 30000 && __HP_aCC < 31400) || (__HP_aCC == 1)) // A.03.13: __HP_aCC == 1
   1.123 +
   1.124 +#    if (__HP_aCC != 1)
   1.125 +#      define _STLP_HAS_NO_NEW_C_HEADERS 1
   1.126 +#    endif
   1.127 +
   1.128 +#    define _STLP_NO_QUALIFIED_FRIENDS       1
   1.129 +// aCC bug ? need explicit args on constructors of partial specialized
   1.130 +// classes
   1.131 +#    define _STLP_PARTIAL_SPEC_NEEDS_TEMPLATE_ARGS 1
   1.132 +// ?? fbp : maybe present in some versions ?
   1.133 +#    define _STLP_NO_MEMBER_TEMPLATE_CLASSES 1
   1.134 +#    define _STLP_NO_MEMBER_TEMPLATE_KEYWORD 1
   1.135 +// <exception> and stuff is in global namespace
   1.136 +#    define _STLP_VENDOR_GLOBAL_EXCEPT_STD
   1.137 +// fbp : moved here
   1.138 +#    define _STLP_VENDOR_GLOBAL_CSTD        1
   1.139 +// #     define _INCLUDE_HPUX_SOURCE
   1.140 +#    define _XPG4
   1.141 +#    define _INCLUDE_XOPEN_SOURCE
   1.142 +#    define _INCLUDE_AES_SOURCE
   1.143 +#  endif /* < 314 */
   1.144 +#  if __HP_aCC == 1
   1.145 +#    define _STLP_BROKEN_USING_IN_CLASS
   1.146 +#    define _STLP_USING_BASE_MEMBER
   1.147 +#    define _STLP_NO_CWCHAR
   1.148 +// #     define _STLP_NO_WCHAR_T 1
   1.149 +#  endif
   1.150 +#endif /* HP_ACC */
   1.151 +
   1.152 +//
   1.153 +#ifndef __HP_aCC
   1.154 +#  define _STLP_NATIVE_INCLUDE_PATH ../CC
   1.155 +#  define _STLP_NATIVE_C_INCLUDE_PATH ../include
   1.156 +// it is HP's old cfront-based compiler.
   1.157 +#  define _STLP_NO_BOOL 1
   1.158 +// #  define _STLP_DONT_USE_BOOL_TYPEDEF 1
   1.159 +#  define _STLP_NO_NEW_NEW_HEADER 1
   1.160 +#  define _STLP_LIMITED_DEFAULT_TEMPLATES 1
   1.161 +#  define _STLP_NO_SIGNED_BUILTINS
   1.162 +#  define _STLP_HAS_NO_NAMESPACES 1
   1.163 +#  define _STLP_NEED_TYPENAME 1
   1.164 +#  define _STLP_NEED_EXPLICIT 1
   1.165 +#  define _STLP_NO_EXCEPTION_SPEC 1
   1.166 +#  define _STLP_NONTEMPL_BASE_MATCH_BUG 1
   1.167 +#  define _STLP_NO_ARROW_OPERATOR 1
   1.168 +#  define _STLP_BASE_MATCH_BUG
   1.169 +#  define _STLP_BASE_TYPEDEF_OUTSIDE_BUG 1
   1.170 +#  define _STLP_NO_NEW_STYLE_CASTS 1
   1.171 +// #  define _STLP_NO_WCHAR_T 1
   1.172 +// #  define _STLP_LONG_LONG long long
   1.173 +#  define _STLP_NEED_MUTABLE 1
   1.174 +#  define _STLP_NO_PARTIAL_SPECIALIZATION_SYNTAX 1
   1.175 +#  define _STLP_NO_BAD_ALLOC 1
   1.176 +#  define _STLP_NO_MEMBER_TEMPLATES 1
   1.177 +#  define _STLP_NO_MEMBER_TEMPLATE_CLASSES 1
   1.178 +#  define _STLP_NO_MEMBER_TEMPLATE_KEYWORD 1
   1.179 +#  define _STLP_NO_FRIEND_TEMPLATES 1
   1.180 +#  define _STLP_NO_QUALIFIED_FRIENDS 1
   1.181 +#  define _STLP_NO_CLASS_PARTIAL_SPECIALIZATION 1
   1.182 +#  define _STLP_NO_FUNCTION_TMPL_PARTIAL_ORDER 1
   1.183 +#  define _STLP_MEMBER_POINTER_PARAM_BUG 1
   1.184 +#  define _STLP_NON_TYPE_TMPL_PARAM_BUG 1
   1.185 +#  define _STLP_NO_DEFAULT_NON_TYPE_PARAM 1
   1.186 +// #  define _STLP_NO_METHOD_SPECIALIZATION 1
   1.187 +#  define _STLP_NO_EXPLICIT_FUNCTION_TMPL_ARGS 1
   1.188 +#  define _STLP_NO_EXCEPTION_HEADER 1
   1.189 +#  define _STLP_DEF_CONST_PLCT_NEW_BUG 1
   1.190 +#  define _STLP_DEF_CONST_DEF_PARAM_BUG 1
   1.191 +#  define _STLP_HAS_NO_NEW_C_HEADERS 1
   1.192 +// #  define _STLP_STATIC_CONST_INIT_BUG 1
   1.193 +// #  define _STLP_THROW_RETURN_BUG 1
   1.194 +// #  define _STLP_LINK_TIME_INSTANTIATION 1
   1.195 +// #  define _STLP_NO_TEMPLATE_CONVERSIONS 1
   1.196 +#  define _STLP_NO_TYPEINFO 1
   1.197 +#  define _STLP_WCHAR_T_IS_USHORT 1
   1.198 +
   1.199 +#endif /* cfront */