_bc.h 3.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138
  1. /* STLport configuration file
  2. * It is internal STLport header - DO NOT include it directly */
  3. #define _STLP_COMPILER "Borland"
  4. #if (__BORLANDC__ < 0x551)
  5. # error - Borland compilers below version 5.5.1 not supported.
  6. #endif
  7. #pragma defineonoption _STLP_NO_RTTI -RT-
  8. #define _STLP_DONT_SUP_DFLT_PARAM
  9. #if (__BORLANDC__ >= 0x580)
  10. # define _STLP_HAS_INCLUDE_NEXT
  11. # define _STLP_NATIVE_HEADER(header) <../include/##header>
  12. # define _STLP_NATIVE_CPP_RUNTIME_HEADER(header) <../include/dinkumware/##header>
  13. # define _STLP_NO_NEW_C_HEADERS
  14. # define _STLP_NO_FORCE_INSTANTIATE
  15. #endif
  16. #if (__BORLANDC__ >= 0x570) && (__BORLANDC__ < 0x580)
  17. # define _STLP_NO_NEW_C_HEADERS
  18. # define _STLP_NO_FORCE_INSTANTIATE
  19. # define _STLP_DEF_CONST_DEF_PARAM_BUG
  20. # define _STLP_USE_DEFAULT_FILE_OFFSET
  21. # if defined (__cplusplus)
  22. # define _STLP_NATIVE_CPP_C_INCLUDE_PATH ../include/c++/ ## GCC_VERSION
  23. # define _STLP_NATIVE_CPP_RUNTIME_INCLUDE_PATH ../include/c++/ ## GCC_VERSION
  24. # endif
  25. # undef _SYS_CDEFS_H
  26. # include </usr/include/sys/cdefs.h>
  27. # ifdef __MT__
  28. # define _PTHREADS
  29. # if !defined (_RTLDLL)
  30. # define _STLP_DONT_USE_PTHREAD_SPINLOCK
  31. # endif
  32. # else
  33. # define _NOTHREADS
  34. # endif
  35. # pragma defineonoption _CPPUNWIND -xd
  36. # define _STLP_NO_EXCEPTION_HEADER
  37. # define _STLP_DONT_USE_EXCEPTIONS
  38. #endif
  39. #if (__BORLANDC__ >= 0x560) && (__BORLANDC__ < 0x570)
  40. # define _USE_OLD_RW_STL
  41. #endif
  42. #if (__BORLANDC__ >= 0x560)
  43. # if !defined (__BUILDING_STLPORT)
  44. # define NOWINBASEINTERLOCK
  45. # endif
  46. # define _STLP_LANG_INVARIANT_DEFINED
  47. #endif
  48. #if (__BORLANDC__ < 0x590)
  49. # define _STLP_NO_FUNCTION_TMPL_PARTIAL_ORDER
  50. # define _STLP_DLLEXPORT_NEEDS_PREDECLARATION
  51. // <bitset> problems
  52. # define _STLP_MEMBER_SPECIALIZATION_BUG 1
  53. # ifdef __cplusplus
  54. # define _STLP_TR1 _STLP_STD_NAME::tr1::
  55. # endif
  56. #endif
  57. #if (__BORLANDC__ < 0x564)
  58. # define _STLP_QUALIFIED_SPECIALIZATION_BUG
  59. # define _STLP_NO_MOVE_SEMANTIC
  60. #endif
  61. #define _STLP_DONT_USE_PRIV_NAMESPACE
  62. #define _STLP_NO_TYPENAME_BEFORE_NAMESPACE
  63. #define _STLP_NO_VENDOR_STDLIB_L
  64. #define _STLP_NO_VENDOR_MATH_F
  65. #define _STLP_DONT_USE_SHORT_STRING_OPTIM 1
  66. #if (__BORLANDC__ < 0x570) || (__BORLANDC__ >= 0x580)
  67. #define _STLP_NO_NATIVE_MBSTATE_T
  68. #undef _STLP_NO_UNEXPECTED_EXCEPT_SUPPORT
  69. #endif
  70. #if (__BORLANDC__ < 0x580) && !defined (_RTLDLL)
  71. # define _UNCAUGHT_EXCEPTION 1
  72. #endif
  73. // <limits> problem
  74. #define _STLP_STATIC_CONST_INIT_BUG
  75. #define _STLP_HAS_SPECIFIC_PROLOG_EPILOG 1
  76. #define _STLP_LONG_LONG __int64
  77. // auto enable thread safety and exceptions:
  78. #ifndef _CPPUNWIND
  79. # define _STLP_HAS_NO_EXCEPTIONS
  80. #endif
  81. #if defined (__MT__) && !defined (_NOTHREADS)
  82. # define _STLP_THREADS
  83. #endif
  84. #define _STLP_EXPORT_DECLSPEC __declspec(dllexport)
  85. #define _STLP_IMPORT_DECLSPEC __declspec(dllimport)
  86. #define _STLP_CLASS_EXPORT_DECLSPEC __declspec(dllexport)
  87. #define _STLP_CLASS_IMPORT_DECLSPEC __declspec(dllimport)
  88. #if defined (_DLL)
  89. # define _STLP_DLL
  90. #endif
  91. #if defined (_RTLDLL)
  92. # define _STLP_RUNTIME_DLL
  93. #endif
  94. #include <stl/config/_detect_dll_or_lib.h>
  95. #undef _STLP_RUNTIME_DLL
  96. #undef _STLP_DLL
  97. #if defined (_STLP_USE_DYNAMIC_LIB)
  98. # define _STLP_USE_DECLSPEC 1
  99. # if defined (__BUILDING_STLPORT)
  100. # define _STLP_CALL __cdecl __export
  101. # else
  102. # define _STLP_CALL __cdecl
  103. # endif
  104. #else
  105. # define _STLP_CALL __cdecl
  106. #endif
  107. #if !defined (__linux__)
  108. # include <stl/config/_auto_link.h>
  109. #endif
  110. #include <stl/config/_feedback.h>