epoc32/include/tools/stlport/stl/config/_hpacc.h
author William Roberts <williamr@symbian.org>
Tue, 16 Mar 2010 16:12:26 +0000
branchSymbian2
changeset 2 2fe1408b6811
child 4 837f303aceeb
permissions -rw-r--r--
Final list of Symbian^2 public API header files
     1 // STLport configuration file
     2 // It is internal STLport header - DO NOT include it directly
     3 
     4 #define _STLP_COMPILER "Acc"
     5 
     6 // system C-library dependent
     7 #if defined(_XOPEN_SOURCE) && (_XOPEN_VERSION - 0 >= 4)
     8 #  define _STLP_RAND48 1
     9 #endif
    10 // #  define _STLP_RAND48 1
    11 #define _STLP_NO_NATIVE_MBSTATE_T      1
    12 #define _STLP_HPACC_BROKEN_BUFEND       1
    13 #define _STLP_WCHAR_HPACC_EXCLUDE      1
    14 
    15 // this was reported to help, just as with SUN CC 4.2
    16 #define _STLP_INLINE_STRING_LITERAL_BUG
    17 
    18 // specific prolog is needed to select correct threads impl
    19 #define _STLP_HAS_SPECIFIC_PROLOG_EPILOG
    20 
    21 // HP aCC with +noeh
    22 #ifdef __HPACC_NOEH
    23 #  define _STLP_HAS_NO_EXCEPTIONS 1
    24 #endif
    25 
    26 // HP compilers
    27 // At that point, we only know we are on HP (and _not_ using gcc,
    28 // according to "stlcomp.h"
    29 
    30 // __HP_aCC indicate HP ANSI C++, but not always (03.xx does not
    31 // define it before 3.13, for example).
    32 //
    33 #if defined (__HP_aCC)
    34 
    35 #  define _STLP_NO_FORCE_INSTANTIATE
    36 #  define _STLP_LONG_LONG long long
    37 #  define _STLP_NO_VENDOR_STDLIB_L
    38 
    39 #  if (__HP_aCC <= 30000 && __HP_aCC >= 12100)
    40 
    41 //Special kludge to workaround bug in aCC A.01.23, CR JAGac40634
    42 #    ifdef _STLP_DEBUG
    43 static void _STLP_dummy_literal() { const char *p = "x";}
    44 static void _STLP_dummy_literal_2() { const char *p = "123456789"; }
    45 static void _STLP_dummy_literal_3() { const char *p = "123456700000000000000089";}
    46 #    endif
    47 
    48 #    define _STLP_HP_ACC                   0123
    49 #    define _STLP_NATIVE_INCLUDE_PATH       ../include
    50 #    define _STLP_VENDOR_GLOBAL_STD         1
    51 #    define _STLP_VENDOR_GLOBAL_CSTD        1
    52 #    define _STLP_DONT_THROW_RANGE_ERRORS   1
    53 #    define _STLP_STATIC_CONST_INIT_BUG 1
    54 #    if (__HP_aCC  < 12700)
    55 //new flag: on most HP compilers cwchar is missing
    56 #      define _STLP_NO_CWCHAR
    57 #    endif
    58 
    59 #    define _STLP_FORCE_ALLOCATORS(t,a) \
    60   typedef typename _Alloc_traits<t,a>::_Orig _STLP_dummy_type1;\
    61   typedef typename _STLP_dummy_type1:: _STLP_TEMPLATE rebind<t>::other _STLP_dummy_type2;
    62 
    63 #  endif /* 123 */
    64 
    65 // latest version and up
    66 #  if (__HP_aCC >= 32500 )
    67 #    define _STLP_HP_ACC                   0325
    68 
    69 #    define _STLP_USE_NEW_C_HEADERS
    70 
    71 #    define _STLP_FORCE_ALLOCATORS(t,a) \
    72   typedef typename _Alloc_traits<t,a>::_Orig _STLP_dummy_type1;\
    73   typedef typename _STLP_dummy_type1:: _STLP_TEMPLATE rebind<t>::other _STLP_dummy_type2;
    74 
    75 #    if !defined ( _INCLUDE__STDC_A1_SOURCE ) // HP-UX 11i only
    76 #      define _STLP_HAS_NO_UNIX98_WCHAR_EXTENSIONS
    77 #    endif
    78 
    79 #    if defined (_HP_NAMESPACE_STD) // option -AA
    80 // from now, we have a full standard lib in namespace std
    81 //
    82 // -AA indicates that we are compiling against Rogue Wave 2.2.1
    83 // STL shipped with the HP aCC compiler. -AA tells the compiler
    84 // to use the STL defined in the include_std directory.
    85 //
    86 #      define _STLP_NATIVE_INCLUDE_PATH ../include_std
    87 
    88 // #      define _STLP_HPACC_ONLY_NATIVE_STRING 1 // STLPort _string.c includes <locale>
    89 #      define _STLP_HP_ACC_COMPAT            -1
    90 #    else // option -Aa
    91 #      define _STLP_NATIVE_INCLUDE_PATH       ../include
    92 #      define _STLP_VENDOR_GLOBAL_STD         1
    93 #      define _STLP_VENDOR_GLOBAL_CSTD        1
    94 #      define _STLP_DONT_THROW_RANGE_ERRORS   1
    95 #    endif /* _NAMESPACE_STD */
    96 #  endif
    97 
    98 #  if (__HP_aCC >= 31400 && __HP_aCC < 32500)
    99 #    define _STLP_HP_ACC 0314
   100 
   101 #    define _STLP_FORCE_ALLOCATORS(t,a) \
   102 typedef typename _Alloc_traits<t,a>::_Orig _STLP_dummy_type1;\
   103 typedef typename _STLP_dummy_type1:: _STLP_TEMPLATE rebind<t>::other _STLP_dummy_type2;
   104 #    define _STLP_NO_CWCHAR
   105 #    if defined (_NAMESPACE_STD) // option -AA
   106 // from now, we have a full standard lib in namespace std
   107 #      define _STLP_NATIVE_INCLUDE_PATH       ../include_std
   108 //#      define _STLP_HPACC_ONLY_NATIVE_STRING 1 // STLPort _string.c includes <locale>
   109 #      define _STLP_HP_ACC_COMPAT            -1
   110 #    else // kind of compatibility mode
   111 #       define _STLP_NATIVE_INCLUDE_PATH       ../include
   112 #      define _STLP_VENDOR_GLOBAL_STD         1
   113 #      define _STLP_VENDOR_GLOBAL_CSTD        1
   114 #      define _STLP_DONT_THROW_RANGE_ERRORS   1
   115 #      define _STLP_NO_ROPE                   1
   116 #    endif /* _NAMESPACE_STD */
   117 #  endif /* 314 */
   118 
   119 #  if ((__HP_aCC >= 30000 && __HP_aCC < 31400) || (__HP_aCC == 1)) // A.03.13: __HP_aCC == 1
   120 
   121 #    if (__HP_aCC != 1)
   122 #      define _STLP_HAS_NO_NEW_C_HEADERS 1
   123 #    endif
   124 
   125 #    define _STLP_NO_QUALIFIED_FRIENDS       1
   126 // aCC bug ? need explicit args on constructors of partial specialized
   127 // classes
   128 #    define _STLP_PARTIAL_SPEC_NEEDS_TEMPLATE_ARGS 1
   129 // ?? fbp : maybe present in some versions ?
   130 #    define _STLP_NO_MEMBER_TEMPLATE_CLASSES 1
   131 #    define _STLP_NO_MEMBER_TEMPLATE_KEYWORD 1
   132 // <exception> and stuff is in global namespace
   133 #    define _STLP_VENDOR_GLOBAL_EXCEPT_STD
   134 // fbp : moved here
   135 #    define _STLP_VENDOR_GLOBAL_CSTD        1
   136 // #     define _INCLUDE_HPUX_SOURCE
   137 #    define _XPG4
   138 #    define _INCLUDE_XOPEN_SOURCE
   139 #    define _INCLUDE_AES_SOURCE
   140 #  endif /* < 314 */
   141 #  if __HP_aCC == 1
   142 #    define _STLP_BROKEN_USING_IN_CLASS
   143 #    define _STLP_USING_BASE_MEMBER
   144 #    define _STLP_NO_CWCHAR
   145 // #     define _STLP_NO_WCHAR_T 1
   146 #  endif
   147 #endif /* HP_ACC */
   148 
   149 //
   150 #ifndef __HP_aCC
   151 #  define _STLP_NATIVE_INCLUDE_PATH ../CC
   152 #  define _STLP_NATIVE_C_INCLUDE_PATH ../include
   153 // it is HP's old cfront-based compiler.
   154 #  define _STLP_NO_BOOL 1
   155 // #  define _STLP_DONT_USE_BOOL_TYPEDEF 1
   156 #  define _STLP_NO_NEW_NEW_HEADER 1
   157 #  define _STLP_LIMITED_DEFAULT_TEMPLATES 1
   158 #  define _STLP_NO_SIGNED_BUILTINS
   159 #  define _STLP_HAS_NO_NAMESPACES 1
   160 #  define _STLP_NEED_TYPENAME 1
   161 #  define _STLP_NEED_EXPLICIT 1
   162 #  define _STLP_NO_EXCEPTION_SPEC 1
   163 #  define _STLP_NONTEMPL_BASE_MATCH_BUG 1
   164 #  define _STLP_NO_ARROW_OPERATOR 1
   165 #  define _STLP_BASE_MATCH_BUG
   166 #  define _STLP_BASE_TYPEDEF_OUTSIDE_BUG 1
   167 #  define _STLP_NO_NEW_STYLE_CASTS 1
   168 // #  define _STLP_NO_WCHAR_T 1
   169 // #  define _STLP_LONG_LONG long long
   170 #  define _STLP_NEED_MUTABLE 1
   171 #  define _STLP_NO_PARTIAL_SPECIALIZATION_SYNTAX 1
   172 #  define _STLP_NO_BAD_ALLOC 1
   173 #  define _STLP_NO_MEMBER_TEMPLATES 1
   174 #  define _STLP_NO_MEMBER_TEMPLATE_CLASSES 1
   175 #  define _STLP_NO_MEMBER_TEMPLATE_KEYWORD 1
   176 #  define _STLP_NO_FRIEND_TEMPLATES 1
   177 #  define _STLP_NO_QUALIFIED_FRIENDS 1
   178 #  define _STLP_NO_CLASS_PARTIAL_SPECIALIZATION 1
   179 #  define _STLP_NO_FUNCTION_TMPL_PARTIAL_ORDER 1
   180 #  define _STLP_MEMBER_POINTER_PARAM_BUG 1
   181 #  define _STLP_NON_TYPE_TMPL_PARAM_BUG 1
   182 #  define _STLP_NO_DEFAULT_NON_TYPE_PARAM 1
   183 // #  define _STLP_NO_METHOD_SPECIALIZATION 1
   184 #  define _STLP_NO_EXPLICIT_FUNCTION_TMPL_ARGS 1
   185 #  define _STLP_NO_EXCEPTION_HEADER 1
   186 #  define _STLP_DEF_CONST_PLCT_NEW_BUG 1
   187 #  define _STLP_DEF_CONST_DEF_PARAM_BUG 1
   188 #  define _STLP_HAS_NO_NEW_C_HEADERS 1
   189 // #  define _STLP_STATIC_CONST_INIT_BUG 1
   190 // #  define _STLP_THROW_RETURN_BUG 1
   191 // #  define _STLP_LINK_TIME_INSTANTIATION 1
   192 // #  define _STLP_NO_TEMPLATE_CONVERSIONS 1
   193 #  define _STLP_NO_TYPEINFO 1
   194 #  define _STLP_WCHAR_T_IS_USHORT 1
   195 
   196 #endif /* cfront */