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