home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: 10 Tools / 10-Tools.zip / stlpt453.zip / STLport-4.5.3 / stlport / config / stl_hpacc.h < prev    next >
C/C++ Source or Header  |  2002-02-02  |  8KB  |  218 lines

  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. #    if defined(_HP_NAMESPACE_STD) // option -AA
  83. // from now, we have a full standard lib in namespace std
  84. //
  85. // -AA indicates that we are compiling against Rogue Wave 2.2.1
  86. // STL shipped with the HP aCC compiler. -AA tells the compiler
  87. // to use the STL defined in the include_std directory.
  88. //
  89. # define _STLP_NATIVE_INCLUDE_PATH ../include_std
  90. # define _STLP_NATIVE_C_INCLUDE_PATH ../include_std
  91. # define _STLP_NATIVE_CPP_C_INCLUDE_PATH ../include_std
  92.  
  93. // #      define _STLP_HPACC_ONLY_NATIVE_STRING 1 // STLPort _string.c includes <locale>
  94. #     define _STLP_HP_ACC_COMPAT            -1
  95. #    else // option -Aa
  96. #     define _STLP_NATIVE_INCLUDE_PATH       ../include
  97. #     define _STLP_NATIVE_C_INCLUDE_PATH     ../include
  98. #     define _STLP_NATIVE_CPP_C_INCLUDE_PATH ../include
  99. #     define _STLP_VENDOR_GLOBAL_STD         1
  100. #     define _STLP_VENDOR_GLOBAL_CSTD        1
  101. #     define _STLP_HAS_NO_NEW_IOSTREAMS      1
  102. // Add the following in _site_config.h if "-Wc,-koenig_lookup,on" not used
  103. //#     define _STLP_NO_KOENIG_LOOKUP          1
  104. #     define _STLP_DONT_THROW_RANGE_ERRORS   1
  105. #    endif /* _NAMESPACE_STD */
  106. #   endif
  107.  
  108. #   if (__HP_aCC >= 31400 && __HP_aCC < 32500)
  109. #     define _STLP_HP_ACC                   0314
  110.  
  111. # define _STLP_FORCE_ALLOCATORS(t,a) \
  112. typedef typename _Alloc_traits<t,a>::_Orig _STLP_dummy_type1;\
  113. typedef typename _STLP_dummy_type1:: _STLP_TEMPLATE rebind<t>::other _STLP_dummy_type2;
  114. #     define _STLP_NO_CWCHAR
  115. #    if defined(_NAMESPACE_STD) // option -AA
  116. // from now, we have a full standard lib in namespace std
  117. #      define _STLP_NATIVE_INCLUDE_PATH       ../include_std
  118. #      define _STLP_NATIVE_C_INCLUDE_PATH     ../include_std
  119. #      define _STLP_NATIVE_CPP_C_INCLUDE_PATH ../include_std
  120. // #      define _STLP_HPACC_ONLY_NATIVE_STRING 1 // STLPort _string.c includes <locale>
  121. #     define _STLP_HP_ACC_COMPAT            -1
  122. #    else // kind of compatibility mode
  123. #     define _STLP_NATIVE_INCLUDE_PATH       ../include
  124. #     define _STLP_NATIVE_C_INCLUDE_PATH     ../include
  125. #     define _STLP_NATIVE_CPP_C_INCLUDE_PATH ../include
  126. #     define _STLP_VENDOR_GLOBAL_STD         1
  127. #     define _STLP_VENDOR_GLOBAL_CSTD        1
  128. #     define _STLP_HAS_NO_NEW_IOSTREAMS      1
  129. // comment if  "-Wc,-koenig_lookup,on" id used
  130. #     define _STLP_NO_KOENIG_LOOKUP          1
  131. #     define _STLP_DONT_THROW_RANGE_ERRORS   1
  132. #     define _STLP_NO_ROPE                   1
  133. #    endif /* _NAMESPACE_STD */
  134. #   endif /* 314 */
  135.  
  136. #  if ((__HP_aCC >= 30000 && __HP_aCC < 31400) || (__HP_aCC == 1)) // A.03.13: __HP_aCC == 1
  137.  
  138. #if (__HP_aCC != 1)
  139. #   define _STLP_HAS_NO_NEW_C_HEADERS 1
  140. #endif
  141.  
  142. #   define _STLP_HAS_NO_NEW_IOSTREAMS
  143. #   define _STLP_NO_QUALIFIED_FRIENDS       1
  144. // aCC bug ? need explicit args on constructors of partial specialized
  145. // classes
  146. #   define _STLP_PARTIAL_SPEC_NEEDS_TEMPLATE_ARGS 1
  147. // ?? fbp: really needed ?
  148. #   define _STLP_STATIC_ARRAY_BUG 1
  149. // ?? fbp : maybe present in some versions ?
  150. #   define _STLP_NO_MEMBER_TEMPLATE_CLASSES 1
  151. #   define _STLP_NO_MEMBER_TEMPLATE_KEYWORD 1
  152. // <exception> and stuff is in global namespace
  153. #   define _STLP_VENDOR_GLOBAL_EXCEPT_STD
  154. // fbp : moved here
  155. #     define _STLP_VENDOR_GLOBAL_CSTD        1
  156. // #     define _INCLUDE_HPUX_SOURCE
  157. #   define _XPG4
  158. #   define _INCLUDE_XOPEN_SOURCE
  159. #   define _INCLUDE_AES_SOURCE
  160. #  endif /* < 314 */
  161. #   if __HP_aCC == 1
  162. #     define _STLP_BROKEN_USING_IN_CLASS
  163. #     define _STLP_USING_BASE_MEMBER
  164. #     define _STLP_NO_CWCHAR
  165. // #     define _STLP_NO_WCHAR_T 1
  166. #   endif
  167. # endif /* HP_ACC */
  168.  
  169. // 
  170. # ifndef __HP_aCC
  171. #  define _STLP_NATIVE_INCLUDE_PATH ../CC
  172. #  define _STLP_NATIVE_C_INCLUDE_PATH ../include
  173. // it is HP's old cfront-based compiler.
  174. #  define _STLP_NO_BOOL 1
  175. // #  define _STLP_DONT_USE_BOOL_TYPEDEF 1
  176. #  define _STLP_NO_NEW_NEW_HEADER 1 
  177. #  define _STLP_HAS_NO_NEW_IOSTREAMS 1
  178. #  define _STLP_LIMITED_DEFAULT_TEMPLATES 1
  179. #  define _STLP_NO_SIGNED_BUILTINS
  180. #  define _STLP_HAS_NO_NAMESPACES 1
  181. #  define _STLP_NEED_TYPENAME 1
  182. #  define _STLP_NEED_EXPLICIT 1
  183. #  define _STLP_NO_EXCEPTION_SPEC 1
  184. #  define _STLP_NONTEMPL_BASE_MATCH_BUG 1
  185. #  define _STLP_NO_ARROW_OPERATOR 1
  186. #  define _STLP_BASE_MATCH_BUG
  187. #  define _STLP_BASE_TYPEDEF_OUTSIDE_BUG 1
  188. #  define _STLP_NO_NEW_STYLE_CASTS 1
  189. // #  define _STLP_NO_WCHAR_T 1
  190. // #  define _STLP_LONG_LONG long long
  191. #  define _STLP_NEED_MUTABLE 1
  192. #  define _STLP_NO_PARTIAL_SPECIALIZATION_SYNTAX 1
  193. #  define _STLP_NO_BAD_ALLOC 1
  194. #  define _STLP_NO_MEMBER_TEMPLATES 1
  195. #  define _STLP_NO_MEMBER_TEMPLATE_CLASSES 1
  196. #  define _STLP_NO_MEMBER_TEMPLATE_KEYWORD 1
  197. #  define _STLP_NO_FRIEND_TEMPLATES 1
  198. #  define _STLP_NO_QUALIFIED_FRIENDS 1
  199. #  define _STLP_NO_CLASS_PARTIAL_SPECIALIZATION 1
  200. #  define _STLP_NO_FUNCTION_TMPL_PARTIAL_ORDER 1
  201. #  define _STLP_MEMBER_POINTER_PARAM_BUG 1
  202. #  define _STLP_NON_TYPE_TMPL_PARAM_BUG 1
  203. #  define _STLP_NO_DEFAULT_NON_TYPE_PARAM 1
  204. // #  define _STLP_NO_METHOD_SPECIALIZATION 1
  205. #  define _STLP_NO_EXPLICIT_FUNCTION_TMPL_ARGS 1
  206. #  define _STLP_NO_EXCEPTION_HEADER 1
  207. #  define _STLP_DEFAULT_CONSTRUCTOR_BUG 1
  208. #  define _STLP_HAS_NO_NEW_C_HEADERS 1
  209. // #  define _STLP_STATIC_CONST_INIT_BUG 1
  210. // #  define _STLP_THROW_RETURN_BUG 1
  211. // #  define _STLP_LINK_TIME_INSTANTIATION 1
  212. // #  define _STLP_NO_TEMPLATE_CONVERSIONS 1
  213. #  define _STLP_NO_TYPEINFO 1
  214. #  define _STLP_WCHAR_T_IS_USHORT 1
  215.  
  216. # endif /* cfront */
  217.  
  218.