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_bc.h < prev    next >
C/C++ Source or Header  |  2001-11-16  |  6KB  |  204 lines

  1. // STLport configuration file
  2. // It is internal STLport header - DO NOT include it directly
  3.  
  4.  
  5. // versions ?
  6. # if defined(_STLP_DESIGNATED_DLL)
  7. #   define _STLP_CALL __cdecl __export
  8. # elif defined(_RTLDLL)
  9. #   define  _STLP_CALL __cdecl __import
  10. # else
  11. #   define  _STLP_CALL __cdecl
  12. # endif
  13.  
  14. # define _USE_STLP
  15. // # define _STLP_USE_OWN_NAMESPACE
  16. # define _STLP_DLLEXPORT_NEEDS_PREDECLARATION
  17. # define _STLP_OPERATOR_SPEC_NEEDS_TEMPLATE_ARGS
  18.  
  19. // most of <exception> contents is still in global namespace
  20. // # define _STLP_VENDOR_UNEXPECTED_STD
  21.  
  22. // <limits> problem
  23. # define _STLP_STATIC_CONST_INIT_BUG
  24.  
  25. // <bitset> problems
  26. # define _STLP_MEMBER_SPECIALIZATION_BUG
  27. # define  _STLP_HAS_SPECIFIC_PROLOG_EPILOG 1
  28.  
  29. #if ( __BORLANDC__ < 0x540 )
  30. // Borland C++ Builder 3 (?)
  31. // those are assumptions, if some of them actually work, please let me know
  32. // #  define _STLP_STATIC_CONST_INIT_BUG 1
  33. // #  define _STLP_THROW_RETURN_BUG 1
  34. #  define _STLP_NO_TEMPLATE_CONVERSIONS 1
  35. #  define _STLP_DEFAULT_CONSTRUCTOR_BUG 1
  36. #  define _STLP_NO_TYPENAME_ON_RETURN_TYPE
  37. #else
  38. #  define _STLP_LONG_LONG  __int64
  39. #endif
  40.  
  41. // BCB 2 or less (Borland 5.02)
  42. #if ( __BORLANDC__ < 0x530 )
  43.  
  44. #  define _STLP_NO_OWN_IOSTREAMS
  45. #  undef  _STLP_OWN_IOSTREAMS
  46.  
  47. #  define _STLP_GLOBAL_VENDOR_CSTD 1
  48. #  define _STLP_HAS_NO_NEW_IOSTREAMS 1
  49. #  define _STLP_HAS_NO_NEW_C_HEADERS 1
  50.  
  51. #  define _STLP_NO_MEMBER_TEMPLATES 1
  52. #  define _STLP_NO_MEMBER_TEMPLATE_CLASSES 1
  53. #  define _STLP_NO_MEMBER_TEMPLATE_KEYWORD 1
  54. #  define _STLP_NO_FRIEND_TEMPLATES 1
  55. #  define _STLP_NO_QUALIFIED_FRIENDS 1
  56. #  define _STLP_NO_CLASS_PARTIAL_SPECIALIZATION 1
  57. #  define _STLP_NO_FUNCTION_TMPL_PARTIAL_ORDER 1
  58. #  define _STLP_NO_EXPLICIT_FUNCTION_TMPL_ARGS 1
  59.  
  60. #  define _STLP_NO_PARTIAL_SPECIALIZATION_SYNTAX 1
  61.  
  62. #  define _STLP_NO_DEFAULT_NON_TYPE_PARAM 1
  63. #  define _STLP_NON_TYPE_TMPL_PARAM_BUG 1
  64. #  define _STLP_MEMBER_SPECIALIZATION_BUG
  65. #  define _STLP_NO_EXCEPTION_HEADER 1
  66. #  define _STLP_NO_EXCEPTION_SPEC 1
  67.  
  68. #  define _STLP_NO_BAD_ALLOC 1
  69. #  define _STLP_NO_ARROW_OPERATOR 1
  70.  
  71. typedef char    mbstate_t;
  72.  
  73. #  define _STLP_LIMITED_DEFAULT_TEMPLATES 1
  74. #  define _STLP_NO_TYPEINFO
  75. #  define _STLP_NO_METHOD_SPECIALIZATION
  76.  
  77. #endif
  78.  
  79. // Borland 5.0x
  80. #if ( __BORLANDC__ < 0x520 )
  81.  
  82. #  define _STLP_BROKEN_USING_DIRECTIVE 1
  83. #  define _STLP_EXPORT_KEYWORD _export
  84. #  define _STLP_IMPORT_KEYWORD _import
  85. #  define _STLP_EXPORT_TEMPLATE_KEYWORD _export
  86. #  define _STLP_IMPORT_TEMPLATE_KEYWORD _import
  87. #endif
  88.  
  89. #if ( __BORLANDC__ < 0x501 )
  90. #   define  _STLP_NONTEMPL_BASE_MATCH_BUG 1
  91. #   define  _STLP_NO_WCHAR_T 1
  92. #endif
  93.  
  94. // 4.x
  95. #if ( __BORLANDC__ < 0x500 )
  96. #   define _STLP_NESTED_TYPE_PARAM_BUG 1
  97. #   define _STLP_STATIC_ARRAY_BUG 1
  98. #   define _STLP_NO_BOOL 1
  99. #   define _STLP_HAS_NO_NAMESPACES 1
  100. #   define _STLP_NEED_TYPENAME 1
  101. #   define _STLP_NEED_EXPLICIT 1
  102. #   define _STLP_NEED_MUTABLE 1
  103. #   define _STLP_NO_WCHAR_T 1
  104. #endif
  105.  
  106. // auto enable thread safety and exceptions:
  107. #   ifndef _CPPUNWIND
  108. #     define _STLP_HAS_NO_EXCEPTIONS
  109. #   endif
  110.  
  111. #   if defined ( __MT__ ) && !defined (_NOTHREADS) && !defined (_REENTRANT)
  112. #     define _REENTRANT 1
  113. #   endif
  114.  
  115. #  if defined ( __DEBUG ) && ( __DEBUG > 1 )
  116. #   define _STLP_DEBUG
  117. #  endif
  118.  
  119. #  define _STLP_LIB_BASENAME "stlp"
  120.  
  121. # if (__BORLANDC__ < 0x540)
  122.  
  123. #  define _STLP_EXPORT_DECLSPEC __declspec(dllexport)
  124. #  define _STLP_IMPORT_DECLSPEC __declspec(dllimport)
  125. #  define _STLP_IMPORT_TEMPLATE_KEYWORD  extern
  126. #  define _STLP_EXPORT_TEMPLATE_KEYWORD
  127.  
  128. #  define _STLP_CLASS_EXPORT_DECLSPEC __declspec(dllexport)
  129. #  define _STLP_CLASS_IMPORT_DECLSPEC __declspec(dllimport)
  130.  
  131. #   if !defined (_STLP_NO_OWN_IOSTREAMS)
  132.  
  133. #    if ( defined (__DLL) || defined (_DLL) || defined (_WINDLL) || defined (_RTLDLL) \
  134.      || defined (_STLP_USE_DYNAMIC_LIB) ) \
  135.        && ! defined (_STLP_USE_STATIC_LIB)
  136. #      undef  _STLP_USE_DECLSPEC
  137. #      define _STLP_USE_DECLSPEC
  138. #     endif
  139. #   endif
  140.  
  141. # else
  142.  
  143. # define _STLP_EXPORT_DECLSPEC __declspec(dllexport)
  144. # define _STLP_IMPORT_DECLSPEC __declspec(dllimport)
  145.  
  146. # define _STLP_CLASS_EXPORT_DECLSPEC __declspec(dllexport)
  147. # define _STLP_CLASS_IMPORT_DECLSPEC __declspec(dllimport)
  148.  
  149. #  if !defined (_STLP_NO_OWN_IOSTREAMS)
  150.  
  151. #    if ( defined (__DLL) || defined (_DLL) || defined (_WINDLL) || defined (_RTLDLL) \
  152.      || defined(_AFXDLL) || defined (_STLP_USE_DYNAMIC_LIB) )
  153. #      undef  _STLP_USE_DECLSPEC
  154. #      define _STLP_USE_DECLSPEC 1
  155. #    endif
  156.  
  157. #  ifndef _STLP_IMPORT_TEMPLATE_KEYWORD
  158. #   define _STLP_IMPORT_TEMPLATE_KEYWORD __declspec(dllimport)
  159. #  endif
  160. #  define _STLP_EXPORT_TEMPLATE_KEYWORD __declspec(dllexport)
  161.  
  162. # if (__BORLANDC__ >= 0x560) && ! defined (_STLP_OWN_IOSTREAMS)
  163. // #  define _STLP_IS_NATIVE_LIB
  164. #  define _STLP_NATIVE_INCLUDE_PATH ../include/oldstl
  165. #  define _STLP_NATIVE_CPP_C_INCLUDE_PATH ../include/oldstl
  166. #  define _STLP_NATIVE_C_INCLUDE_PATH ../include/oldstl
  167. #  define _STLP_NATIVE_CPP_RUNTIME_PATH ../include/oldstl
  168. # endif
  169.  
  170. # ifndef __BUILDING_STLPORT
  171. #  ifdef _STLP_DEBUG
  172. #   ifdef _MT
  173. #    ifdef _RTLDLL
  174. #      pragma comment(lib,"stlpmt_stldebug45.lib")
  175. #    else
  176. #     pragma comment(lib,"stlpmt_stldebugst.lib")
  177. #    endif
  178. #   else
  179. #    ifdef _RTLDLL
  180. #      pragma comment(lib,"stlp_stldebug45.lib")
  181. #    else
  182. #     pragma comment(lib,"stlp_stldebugst.lib")
  183. #    endif
  184. #   endif
  185. #  else
  186. #   ifdef _MT
  187. #    ifdef _RTLDLL
  188. #      pragma comment(lib,"stlpmt45.lib")
  189. #    else
  190. #     pragma comment(lib,"stlpmtst.lib")
  191. #    endif
  192. #  else
  193. #    ifdef _RTLDLL
  194. #      pragma comment(lib,"stlp45.lib")
  195. #    else
  196. #     pragma comment(lib,"stlpst.lib")
  197. #    endif
  198. #   endif
  199. #  endif
  200. # endif
  201.  
  202. #  endif /* _STLP_OWN_IOSTREAMS */
  203. # endif
  204.