digitalmars.hpp 4.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142
  1. // Copyright (C) Christof Meerwald 2003
  2. // Copyright (C) Dan Watkins 2003
  3. //
  4. // Use, modification and distribution are subject to the
  5. // Boost Software License, Version 1.0. (See accompanying file
  6. // LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
  7. // Digital Mars C++ compiler setup:
  8. #define BOOST_COMPILER __DMC_VERSION_STRING__
  9. #define BOOST_HAS_LONG_LONG
  10. #define BOOST_HAS_PRAGMA_ONCE
  11. #if !defined(BOOST_STRICT_CONFIG)
  12. #define BOOST_NO_MEMBER_TEMPLATE_FRIENDS
  13. #define BOOST_NO_OPERATORS_IN_NAMESPACE
  14. #define BOOST_NO_UNREACHABLE_RETURN_DETECTION
  15. #define BOOST_NO_SFINAE
  16. #define BOOST_NO_USING_TEMPLATE
  17. #define BOOST_FUNCTION_SCOPE_USING_DECLARATION_BREAKS_ADL
  18. #endif
  19. //
  20. // has macros:
  21. #define BOOST_HAS_DIRENT_H
  22. #define BOOST_HAS_STDINT_H
  23. #define BOOST_HAS_WINTHREADS
  24. #if (__DMC__ >= 0x847)
  25. #define BOOST_HAS_EXPM1
  26. #define BOOST_HAS_LOG1P
  27. #endif
  28. //
  29. // Is this really the best way to detect whether the std lib is in namespace std?
  30. //
  31. #ifdef __cplusplus
  32. #include <cstddef>
  33. #endif
  34. #if !defined(__STL_IMPORT_VENDOR_CSTD) && !defined(_STLP_IMPORT_VENDOR_CSTD)
  35. # define BOOST_NO_STDC_NAMESPACE
  36. #endif
  37. // check for exception handling support:
  38. #if !defined(_CPPUNWIND) && !defined(BOOST_NO_EXCEPTIONS)
  39. # define BOOST_NO_EXCEPTIONS
  40. #endif
  41. //
  42. // C++0x features
  43. //
  44. #define BOOST_NO_CXX11_AUTO_DECLARATIONS
  45. #define BOOST_NO_CXX11_AUTO_MULTIDECLARATIONS
  46. #define BOOST_NO_CXX11_CHAR16_T
  47. #define BOOST_NO_CXX11_CHAR32_T
  48. #define BOOST_NO_CXX11_CONSTEXPR
  49. #define BOOST_NO_CXX11_DECLTYPE
  50. #define BOOST_NO_CXX11_DECLTYPE_N3276
  51. #define BOOST_NO_CXX11_DEFAULTED_FUNCTIONS
  52. #define BOOST_NO_CXX11_DELETED_FUNCTIONS
  53. #define BOOST_NO_CXX11_EXPLICIT_CONVERSION_OPERATORS
  54. #define BOOST_NO_CXX11_EXTERN_TEMPLATE
  55. #define BOOST_NO_CXX11_HDR_INITIALIZER_LIST
  56. #define BOOST_NO_CXX11_LAMBDAS
  57. #define BOOST_NO_CXX11_LOCAL_CLASS_TEMPLATE_PARAMETERS
  58. #define BOOST_NO_CXX11_NOEXCEPT
  59. #define BOOST_NO_CXX11_NULLPTR
  60. #define BOOST_NO_CXX11_RANGE_BASED_FOR
  61. #define BOOST_NO_CXX11_RAW_LITERALS
  62. #define BOOST_NO_CXX11_RVALUE_REFERENCES
  63. #define BOOST_NO_CXX11_SCOPED_ENUMS
  64. #define BOOST_NO_SFINAE_EXPR
  65. #define BOOST_NO_CXX11_SFINAE_EXPR
  66. #define BOOST_NO_CXX11_STATIC_ASSERT
  67. #define BOOST_NO_CXX11_TEMPLATE_ALIASES
  68. #define BOOST_NO_CXX11_UNICODE_LITERALS
  69. #define BOOST_NO_CXX11_VARIADIC_TEMPLATES
  70. #define BOOST_NO_CXX11_UNIFIED_INITIALIZATION_SYNTAX
  71. #define BOOST_NO_CXX11_USER_DEFINED_LITERALS
  72. #define BOOST_NO_CXX11_ALIGNAS
  73. #define BOOST_NO_CXX11_TRAILING_RESULT_TYPES
  74. #define BOOST_NO_CXX11_INLINE_NAMESPACES
  75. #define BOOST_NO_CXX11_REF_QUALIFIERS
  76. #define BOOST_NO_CXX11_FINAL
  77. #define BOOST_NO_CXX11_OVERRIDE
  78. #define BOOST_NO_CXX11_THREAD_LOCAL
  79. #define BOOST_NO_CXX11_UNRESTRICTED_UNION
  80. // C++ 14:
  81. #if !defined(__cpp_aggregate_nsdmi) || (__cpp_aggregate_nsdmi < 201304)
  82. # define BOOST_NO_CXX14_AGGREGATE_NSDMI
  83. #endif
  84. #if !defined(__cpp_binary_literals) || (__cpp_binary_literals < 201304)
  85. # define BOOST_NO_CXX14_BINARY_LITERALS
  86. #endif
  87. #if !defined(__cpp_constexpr) || (__cpp_constexpr < 201304)
  88. # define BOOST_NO_CXX14_CONSTEXPR
  89. #endif
  90. #if !defined(__cpp_decltype_auto) || (__cpp_decltype_auto < 201304)
  91. # define BOOST_NO_CXX14_DECLTYPE_AUTO
  92. #endif
  93. #if (__cplusplus < 201304) // There's no SD6 check for this....
  94. # define BOOST_NO_CXX14_DIGIT_SEPARATORS
  95. #endif
  96. #if !defined(__cpp_generic_lambdas) || (__cpp_generic_lambdas < 201304)
  97. # define BOOST_NO_CXX14_GENERIC_LAMBDAS
  98. #endif
  99. #if !defined(__cpp_init_captures) || (__cpp_init_captures < 201304)
  100. # define BOOST_NO_CXX14_INITIALIZED_LAMBDA_CAPTURES
  101. #endif
  102. #if !defined(__cpp_return_type_deduction) || (__cpp_return_type_deduction < 201304)
  103. # define BOOST_NO_CXX14_RETURN_TYPE_DEDUCTION
  104. #endif
  105. #if !defined(__cpp_variable_templates) || (__cpp_variable_templates < 201304)
  106. # define BOOST_NO_CXX14_VARIABLE_TEMPLATES
  107. #endif
  108. // C++17
  109. #if !defined(__cpp_structured_bindings) || (__cpp_structured_bindings < 201606)
  110. # define BOOST_NO_CXX17_STRUCTURED_BINDINGS
  111. #endif
  112. #if !defined(__cpp_inline_variables) || (__cpp_inline_variables < 201606)
  113. # define BOOST_NO_CXX17_INLINE_VARIABLES
  114. #endif
  115. #if !defined(__cpp_fold_expressions) || (__cpp_fold_expressions < 201603)
  116. # define BOOST_NO_CXX17_FOLD_EXPRESSIONS
  117. #endif
  118. #if !defined(__cpp_if_constexpr) || (__cpp_if_constexpr < 201606)
  119. # define BOOST_NO_CXX17_IF_CONSTEXPR
  120. #endif
  121. #if (__DMC__ <= 0x840)
  122. #error "Compiler not supported or configured - please reconfigure"
  123. #endif
  124. //
  125. // last known and checked version is ...:
  126. #if (__DMC__ > 0x848)
  127. # if defined(BOOST_ASSERT_CONFIG)
  128. # error "boost: Unknown compiler version - please run the configure tests and report the results"
  129. # endif
  130. #endif