_hpacc.h 4.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129
  1. /* STLport configuration file
  2. * It is internal STLport header - DO NOT include it directly
  3. */
  4. #define _STLP_COMPILER "aCC"
  5. /* system C-library dependent */
  6. #if defined (_XOPEN_SOURCE) && (_XOPEN_VERSION - 0 >= 4)
  7. # define _STLP_RAND48 1
  8. #endif
  9. /* # define _STLP_RAND48 1 */
  10. /* #define _STLP_NO_NATIVE_MBSTATE_T 1 */
  11. #define _STLP_HPACC_BROKEN_BUFEND 1
  12. #define _STLP_WCHAR_HPACC_EXCLUDE 1
  13. /* this was reported to help, just as with SUN CC 4.2 */
  14. #define _STLP_INLINE_STRING_LITERAL_BUG
  15. /* specific prolog is needed to select correct threads impl */
  16. #define _STLP_HAS_SPECIFIC_PROLOG_EPILOG
  17. /* HP aCC with +noeh */
  18. #ifdef __HPACC_NOEH
  19. # define _STLP_HAS_NO_EXCEPTIONS 1
  20. #endif
  21. #define _STLP_NO_FORCE_INSTANTIATE
  22. #define _STLP_LONG_LONG long long
  23. #define _STLP_NO_VENDOR_STDLIB_L
  24. /* The aCC6 compiler is using the EDG Front End. Unfortunately, prior to
  25. * version A.06.12, defining the __EDG__ and __EDG_VERSION__ macros was
  26. * disabled. It was corrected in A.06.12.
  27. */
  28. #if ((__HP_aCC > 60000) && (__HP_aCC < 61200))
  29. # define __EDG__
  30. # define __EDG_VERSION__ 306
  31. #endif
  32. #if (__HP_aCC >= 32500 )
  33. # define _STLP_USE_NEW_C_HEADERS
  34. # define _STLP_FORCE_ALLOCATORS(t,a) \
  35. typedef typename _Alloc_traits<t,a>::_Orig _STLP_dummy_type1;\
  36. typedef typename _STLP_dummy_type1:: _STLP_TEMPLATE rebind<t>::other _STLP_dummy_type2;
  37. # if defined (_HP_NAMESPACE_STD) // option -AA
  38. /* from now, we have a full standard lib in namespace std
  39. *
  40. * -AA indicates that we are compiling against Rogue Wave 2.2.1
  41. * STL shipped with the HP aCC compiler. -AA tells the compiler
  42. * to use the STL defined in the include_std directory.
  43. */
  44. # define _STLP_NATIVE_INCLUDE_PATH ../include_std
  45. # else // option -Aa
  46. # define _STLP_VENDOR_GLOBAL_STD 1
  47. # define _STLP_VENDOR_GLOBAL_CSTD 1
  48. # define _STLP_DONT_THROW_RANGE_ERRORS 1
  49. # endif
  50. #endif
  51. #if (__HP_aCC >= 31400 && __HP_aCC < 32500)
  52. # define _STLP_FORCE_ALLOCATORS(t,a) \
  53. typedef typename _Alloc_traits<t,a>::_Orig _STLP_dummy_type1;\
  54. typedef typename _STLP_dummy_type1:: _STLP_TEMPLATE rebind<t>::other _STLP_dummy_type2;
  55. # define _STLP_NO_CWCHAR
  56. # if defined (_NAMESPACE_STD) // option -AA
  57. /* from now, we have a full standard lib in namespace std */
  58. # define _STLP_NATIVE_INCLUDE_PATH ../include_std
  59. # else /* kind of compatibility mode */
  60. # define _STLP_VENDOR_GLOBAL_STD 1
  61. # define _STLP_VENDOR_GLOBAL_CSTD 1
  62. # define _STLP_DONT_THROW_RANGE_ERRORS 1
  63. # define _STLP_NO_ROPE 1
  64. # endif
  65. #endif /* 314 */
  66. #if ((__HP_aCC >= 30000 && __HP_aCC < 31400) || (__HP_aCC == 1)) // A.03.13: __HP_aCC == 1
  67. # if (__HP_aCC != 1)
  68. # define _STLP_HAS_NO_NEW_C_HEADERS 1
  69. # endif
  70. # define _STLP_NO_QUALIFIED_FRIENDS 1
  71. /* aCC bug ? need explicit args on constructors of partial specialized
  72. * classes
  73. */
  74. # define _STLP_PARTIAL_SPEC_NEEDS_TEMPLATE_ARGS 1
  75. /* ?? fbp : maybe present in some versions ? */
  76. # define _STLP_NO_MEMBER_TEMPLATE_CLASSES 1
  77. # define _STLP_NO_MEMBER_TEMPLATE_KEYWORD 1
  78. /* <exception> and stuff is in global namespace */
  79. # define _STLP_VENDOR_GLOBAL_EXCEPT_STD
  80. /* fbp : moved here */
  81. # define _STLP_VENDOR_GLOBAL_CSTD 1
  82. /* # define _INCLUDE_HPUX_SOURCE */
  83. # define _XPG4
  84. # define _INCLUDE_XOPEN_SOURCE
  85. # define _INCLUDE_AES_SOURCE
  86. #endif
  87. #if (__HP_aCC <= 30000 && __HP_aCC >= 12100)
  88. /* Special kludge to workaround bug in aCC A.01.23, CR JAGac40634 */
  89. # ifdef _STLP_DEBUG
  90. static void _STLP_dummy_literal() { const char *p = "x";}
  91. static void _STLP_dummy_literal_2() { const char *p = "123456789"; }
  92. static void _STLP_dummy_literal_3() { const char *p = "123456700000000000000089";}
  93. # endif
  94. # define _STLP_VENDOR_GLOBAL_STD 1
  95. # define _STLP_VENDOR_GLOBAL_CSTD 1
  96. # define _STLP_DONT_THROW_RANGE_ERRORS 1
  97. # define _STLP_STATIC_CONST_INIT_BUG 1
  98. # if (__HP_aCC < 12700)
  99. /* new flag: on most HP compilers cwchar is missing */
  100. # define _STLP_NO_CWCHAR
  101. # endif
  102. # define _STLP_FORCE_ALLOCATORS(t,a) \
  103. typedef typename _Alloc_traits<t,a>::_Orig _STLP_dummy_type1;\
  104. typedef typename _STLP_dummy_type1:: _STLP_TEMPLATE rebind<t>::other _STLP_dummy_type2;
  105. #endif
  106. #if __HP_aCC == 1
  107. # define _STLP_BROKEN_USING_IN_CLASS
  108. # define _STLP_USING_BASE_MEMBER
  109. # define _STLP_NO_CWCHAR
  110. /* # define _STLP_NO_WCHAR_T 1 */
  111. #endif