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