/home/ntakagi/work/STLport-5.1.5/stlport/stl/config/_hpacc.h

Go to the documentation of this file.
00001 // STLport configuration file
00002 // It is internal STLport header - DO NOT include it directly
00003 
00004 #define _STLP_COMPILER "Acc"
00005 
00006 // system C-library dependent
00007 #if defined(_XOPEN_SOURCE) && (_XOPEN_VERSION - 0 >= 4)
00008 #  define _STLP_RAND48 1
00009 #endif
00010 // #  define _STLP_RAND48 1
00011 #define _STLP_NO_NATIVE_MBSTATE_T      1
00012 #define _STLP_HPACC_BROKEN_BUFEND       1
00013 #define _STLP_WCHAR_HPACC_EXCLUDE      1
00014 
00015 // this was reported to help, just as with SUN CC 4.2
00016 #define _STLP_INLINE_STRING_LITERAL_BUG
00017 
00018 // specific prolog is needed to select correct threads impl
00019 #define _STLP_HAS_SPECIFIC_PROLOG_EPILOG
00020 
00021 // HP aCC with +noeh
00022 #ifdef __HPACC_NOEH
00023 #  define _STLP_HAS_NO_EXCEPTIONS 1
00024 #endif
00025 
00026 // HP compilers
00027 // At that point, we only know we are on HP (and _not_ using gcc,
00028 // according to "stlcomp.h"
00029 
00030 // __HP_aCC indicate HP ANSI C++, but not always (03.xx does not
00031 // define it before 3.13, for example).
00032 //
00033 #if defined (__HP_aCC)
00034 
00035 #  define _STLP_NO_FORCE_INSTANTIATE
00036 #  define _STLP_LONG_LONG long long
00037 #  define _STLP_NO_VENDOR_STDLIB_L
00038 
00039 #  if (__HP_aCC <= 30000 && __HP_aCC >= 12100)
00040 
00041 //Special kludge to workaround bug in aCC A.01.23, CR JAGac40634
00042 #    ifdef _STLP_DEBUG
00043 static void _STLP_dummy_literal() { const char *p = "x";}
00044 static void _STLP_dummy_literal_2() { const char *p = "123456789"; }
00045 static void _STLP_dummy_literal_3() { const char *p = "123456700000000000000089";}
00046 #    endif
00047 
00048 #    define _STLP_HP_ACC                   0123
00049 #    define _STLP_NATIVE_INCLUDE_PATH       ../include
00050 #    define _STLP_VENDOR_GLOBAL_STD         1
00051 #    define _STLP_VENDOR_GLOBAL_CSTD        1
00052 #    define _STLP_DONT_THROW_RANGE_ERRORS   1
00053 #    define _STLP_STATIC_CONST_INIT_BUG 1
00054 #    if (__HP_aCC  < 12700)
00055 //new flag: on most HP compilers cwchar is missing
00056 #      define _STLP_NO_CWCHAR
00057 #    endif
00058 
00059 #    define _STLP_FORCE_ALLOCATORS(t,a) \
00060   typedef typename _Alloc_traits<t,a>::_Orig _STLP_dummy_type1;\
00061   typedef typename _STLP_dummy_type1:: _STLP_TEMPLATE rebind<t>::other _STLP_dummy_type2;
00062 
00063 #  endif /* 123 */
00064 
00065 // latest version and up
00066 #  if (__HP_aCC >= 32500 )
00067 #    define _STLP_HP_ACC                   0325
00068 
00069 #    define _STLP_USE_NEW_C_HEADERS
00070 
00071 #    define _STLP_FORCE_ALLOCATORS(t,a) \
00072   typedef typename _Alloc_traits<t,a>::_Orig _STLP_dummy_type1;\
00073   typedef typename _STLP_dummy_type1:: _STLP_TEMPLATE rebind<t>::other _STLP_dummy_type2;
00074 
00075 #    if !defined ( _INCLUDE__STDC_A1_SOURCE ) // HP-UX 11i only
00076 #      define _STLP_HAS_NO_UNIX98_WCHAR_EXTENSIONS
00077 #    endif
00078 
00079 #    if defined (_HP_NAMESPACE_STD) // option -AA
00080 // from now, we have a full standard lib in namespace std
00081 //
00082 // -AA indicates that we are compiling against Rogue Wave 2.2.1
00083 // STL shipped with the HP aCC compiler. -AA tells the compiler
00084 // to use the STL defined in the include_std directory.
00085 //
00086 #      define _STLP_NATIVE_INCLUDE_PATH ../include_std
00087 
00088 // #      define _STLP_HPACC_ONLY_NATIVE_STRING 1 // STLPort _string.c includes <locale>
00089 #      define _STLP_HP_ACC_COMPAT            -1
00090 #    else // option -Aa
00091 #      define _STLP_NATIVE_INCLUDE_PATH       ../include
00092 #      define _STLP_VENDOR_GLOBAL_STD         1
00093 #      define _STLP_VENDOR_GLOBAL_CSTD        1
00094 #      define _STLP_DONT_THROW_RANGE_ERRORS   1
00095 #    endif /* _NAMESPACE_STD */
00096 #  endif
00097 
00098 #  if (__HP_aCC >= 31400 && __HP_aCC < 32500)
00099 #    define _STLP_HP_ACC 0314
00100 
00101 #    define _STLP_FORCE_ALLOCATORS(t,a) \
00102 typedef typename _Alloc_traits<t,a>::_Orig _STLP_dummy_type1;\
00103 typedef typename _STLP_dummy_type1:: _STLP_TEMPLATE rebind<t>::other _STLP_dummy_type2;
00104 #    define _STLP_NO_CWCHAR
00105 #    if defined (_NAMESPACE_STD) // option -AA
00106 // from now, we have a full standard lib in namespace std
00107 #      define _STLP_NATIVE_INCLUDE_PATH       ../include_std
00108 //#      define _STLP_HPACC_ONLY_NATIVE_STRING 1 // STLPort _string.c includes <locale>
00109 #      define _STLP_HP_ACC_COMPAT            -1
00110 #    else // kind of compatibility mode
00111 #       define _STLP_NATIVE_INCLUDE_PATH       ../include
00112 #      define _STLP_VENDOR_GLOBAL_STD         1
00113 #      define _STLP_VENDOR_GLOBAL_CSTD        1
00114 #      define _STLP_DONT_THROW_RANGE_ERRORS   1
00115 #      define _STLP_NO_ROPE                   1
00116 #    endif /* _NAMESPACE_STD */
00117 #  endif /* 314 */
00118 
00119 #  if ((__HP_aCC >= 30000 && __HP_aCC < 31400) || (__HP_aCC == 1)) // A.03.13: __HP_aCC == 1
00120 
00121 #    if (__HP_aCC != 1)
00122 #      define _STLP_HAS_NO_NEW_C_HEADERS 1
00123 #    endif
00124 
00125 #    define _STLP_NO_QUALIFIED_FRIENDS       1
00126 // aCC bug ? need explicit args on constructors of partial specialized
00127 // classes
00128 #    define _STLP_PARTIAL_SPEC_NEEDS_TEMPLATE_ARGS 1
00129 // ?? fbp : maybe present in some versions ?
00130 #    define _STLP_NO_MEMBER_TEMPLATE_CLASSES 1
00131 #    define _STLP_NO_MEMBER_TEMPLATE_KEYWORD 1
00132 // <exception> and stuff is in global namespace
00133 #    define _STLP_VENDOR_GLOBAL_EXCEPT_STD
00134 // fbp : moved here
00135 #    define _STLP_VENDOR_GLOBAL_CSTD        1
00136 // #     define _INCLUDE_HPUX_SOURCE
00137 #    define _XPG4
00138 #    define _INCLUDE_XOPEN_SOURCE
00139 #    define _INCLUDE_AES_SOURCE
00140 #  endif /* < 314 */
00141 #  if __HP_aCC == 1
00142 #    define _STLP_BROKEN_USING_IN_CLASS
00143 #    define _STLP_USING_BASE_MEMBER
00144 #    define _STLP_NO_CWCHAR
00145 // #     define _STLP_NO_WCHAR_T 1
00146 #  endif
00147 #endif /* HP_ACC */
00148 
00149 //
00150 #ifndef __HP_aCC
00151 #  define _STLP_NATIVE_INCLUDE_PATH ../CC
00152 #  define _STLP_NATIVE_C_INCLUDE_PATH ../include
00153 // it is HP's old cfront-based compiler.
00154 #  define _STLP_NO_BOOL 1
00155 // #  define _STLP_DONT_USE_BOOL_TYPEDEF 1
00156 #  define _STLP_NO_NEW_NEW_HEADER 1
00157 #  define _STLP_LIMITED_DEFAULT_TEMPLATES 1
00158 #  define _STLP_NO_SIGNED_BUILTINS
00159 #  define _STLP_HAS_NO_NAMESPACES 1
00160 #  define _STLP_NEED_TYPENAME 1
00161 #  define _STLP_NEED_EXPLICIT 1
00162 #  define _STLP_NO_EXCEPTION_SPEC 1
00163 #  define _STLP_NONTEMPL_BASE_MATCH_BUG 1
00164 #  define _STLP_NO_ARROW_OPERATOR 1
00165 #  define _STLP_BASE_MATCH_BUG
00166 #  define _STLP_BASE_TYPEDEF_OUTSIDE_BUG 1
00167 #  define _STLP_NO_NEW_STYLE_CASTS 1
00168 // #  define _STLP_NO_WCHAR_T 1
00169 // #  define _STLP_LONG_LONG long long
00170 #  define _STLP_NEED_MUTABLE 1
00171 #  define _STLP_NO_PARTIAL_SPECIALIZATION_SYNTAX 1
00172 #  define _STLP_NO_BAD_ALLOC 1
00173 #  define _STLP_NO_MEMBER_TEMPLATES 1
00174 #  define _STLP_NO_MEMBER_TEMPLATE_CLASSES 1
00175 #  define _STLP_NO_MEMBER_TEMPLATE_KEYWORD 1
00176 #  define _STLP_NO_FRIEND_TEMPLATES 1
00177 #  define _STLP_NO_QUALIFIED_FRIENDS 1
00178 #  define _STLP_NO_CLASS_PARTIAL_SPECIALIZATION 1
00179 #  define _STLP_NO_FUNCTION_TMPL_PARTIAL_ORDER 1
00180 #  define _STLP_MEMBER_POINTER_PARAM_BUG 1
00181 #  define _STLP_NON_TYPE_TMPL_PARAM_BUG 1
00182 #  define _STLP_NO_DEFAULT_NON_TYPE_PARAM 1
00183 // #  define _STLP_NO_METHOD_SPECIALIZATION 1
00184 #  define _STLP_NO_EXPLICIT_FUNCTION_TMPL_ARGS 1
00185 #  define _STLP_NO_EXCEPTION_HEADER 1
00186 #  define _STLP_DEF_CONST_PLCT_NEW_BUG 1
00187 #  define _STLP_DEF_CONST_DEF_PARAM_BUG 1
00188 #  define _STLP_HAS_NO_NEW_C_HEADERS 1
00189 // #  define _STLP_STATIC_CONST_INIT_BUG 1
00190 // #  define _STLP_THROW_RETURN_BUG 1
00191 // #  define _STLP_LINK_TIME_INSTANTIATION 1
00192 // #  define _STLP_NO_TEMPLATE_CONVERSIONS 1
00193 #  define _STLP_NO_TYPEINFO 1
00194 #  define _STLP_WCHAR_T_IS_USHORT 1
00195 
00196 #endif /* cfront */



Generated on Mon Mar 10 15:32:46 2008 by  doxygen 1.5.1