gcc_xml.hpp 4.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113
  1. // (C) Copyright John Maddock 2006.
  2. // Use, modification and distribution are subject to the
  3. // Boost Software License, Version 1.0. (See accompanying file
  4. // LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
  5. // See http://www.boost.org for most recent version.
  6. // GCC-XML C++ compiler setup:
  7. # if !defined(__GCCXML_GNUC__) || ((__GCCXML_GNUC__ <= 3) && (__GCCXML_GNUC_MINOR__ <= 3))
  8. # define BOOST_NO_IS_ABSTRACT
  9. # endif
  10. //
  11. // Threading support: Turn this on unconditionally here (except for
  12. // those platforms where we can know for sure). It will get turned off again
  13. // later if no threading API is detected.
  14. //
  15. #if !defined(__MINGW32__) && !defined(_MSC_VER) && !defined(linux) && !defined(__linux) && !defined(__linux__)
  16. # define BOOST_HAS_THREADS
  17. #endif
  18. //
  19. // gcc has "long long"
  20. //
  21. #define BOOST_HAS_LONG_LONG
  22. // C++0x features:
  23. //
  24. # define BOOST_NO_CXX11_CONSTEXPR
  25. # define BOOST_NO_CXX11_NULLPTR
  26. # define BOOST_NO_CXX11_TEMPLATE_ALIASES
  27. # define BOOST_NO_CXX11_DECLTYPE
  28. # define BOOST_NO_CXX11_DECLTYPE_N3276
  29. # define BOOST_NO_CXX11_FUNCTION_TEMPLATE_DEFAULT_ARGS
  30. # define BOOST_NO_CXX11_RVALUE_REFERENCES
  31. # define BOOST_NO_CXX11_STATIC_ASSERT
  32. # define BOOST_NO_CXX11_VARIADIC_TEMPLATES
  33. # define BOOST_NO_CXX11_VARIADIC_MACROS
  34. # define BOOST_NO_CXX11_AUTO_DECLARATIONS
  35. # define BOOST_NO_CXX11_AUTO_MULTIDECLARATIONS
  36. # define BOOST_NO_CXX11_CHAR16_T
  37. # define BOOST_NO_CXX11_CHAR32_T
  38. # define BOOST_NO_CXX11_DEFAULTED_FUNCTIONS
  39. # define BOOST_NO_CXX11_DELETED_FUNCTIONS
  40. # define BOOST_NO_CXX11_HDR_INITIALIZER_LIST
  41. # define BOOST_NO_CXX11_SCOPED_ENUMS
  42. # define BOOST_NO_SFINAE_EXPR
  43. # define BOOST_NO_CXX11_SFINAE_EXPR
  44. # define BOOST_NO_CXX11_EXPLICIT_CONVERSION_OPERATORS
  45. # define BOOST_NO_CXX11_LAMBDAS
  46. # define BOOST_NO_CXX11_LOCAL_CLASS_TEMPLATE_PARAMETERS
  47. # define BOOST_NO_CXX11_RANGE_BASED_FOR
  48. # define BOOST_NO_CXX11_RAW_LITERALS
  49. # define BOOST_NO_CXX11_UNICODE_LITERALS
  50. # define BOOST_NO_CXX11_NOEXCEPT
  51. # define BOOST_NO_CXX11_UNIFIED_INITIALIZATION_SYNTAX
  52. # define BOOST_NO_CXX11_USER_DEFINED_LITERALS
  53. # define BOOST_NO_CXX11_ALIGNAS
  54. # define BOOST_NO_CXX11_TRAILING_RESULT_TYPES
  55. # define BOOST_NO_CXX11_INLINE_NAMESPACES
  56. # define BOOST_NO_CXX11_REF_QUALIFIERS
  57. # define BOOST_NO_CXX11_FINAL
  58. # define BOOST_NO_CXX11_OVERRIDE
  59. # define BOOST_NO_CXX11_THREAD_LOCAL
  60. # define BOOST_NO_CXX11_UNRESTRICTED_UNION
  61. // C++ 14:
  62. #if !defined(__cpp_aggregate_nsdmi) || (__cpp_aggregate_nsdmi < 201304)
  63. # define BOOST_NO_CXX14_AGGREGATE_NSDMI
  64. #endif
  65. #if !defined(__cpp_binary_literals) || (__cpp_binary_literals < 201304)
  66. # define BOOST_NO_CXX14_BINARY_LITERALS
  67. #endif
  68. #if !defined(__cpp_constexpr) || (__cpp_constexpr < 201304)
  69. # define BOOST_NO_CXX14_CONSTEXPR
  70. #endif
  71. #if !defined(__cpp_decltype_auto) || (__cpp_decltype_auto < 201304)
  72. # define BOOST_NO_CXX14_DECLTYPE_AUTO
  73. #endif
  74. #if (__cplusplus < 201304) // There's no SD6 check for this....
  75. # define BOOST_NO_CXX14_DIGIT_SEPARATORS
  76. #endif
  77. #if !defined(__cpp_generic_lambdas) || (__cpp_generic_lambdas < 201304)
  78. # define BOOST_NO_CXX14_GENERIC_LAMBDAS
  79. #endif
  80. #if !defined(__cpp_init_captures) || (__cpp_init_captures < 201304)
  81. # define BOOST_NO_CXX14_INITIALIZED_LAMBDA_CAPTURES
  82. #endif
  83. #if !defined(__cpp_return_type_deduction) || (__cpp_return_type_deduction < 201304)
  84. # define BOOST_NO_CXX14_RETURN_TYPE_DEDUCTION
  85. #endif
  86. #if !defined(__cpp_variable_templates) || (__cpp_variable_templates < 201304)
  87. # define BOOST_NO_CXX14_VARIABLE_TEMPLATES
  88. #endif
  89. // C++17
  90. #if !defined(__cpp_structured_bindings) || (__cpp_structured_bindings < 201606)
  91. # define BOOST_NO_CXX17_STRUCTURED_BINDINGS
  92. #endif
  93. #if !defined(__cpp_inline_variables) || (__cpp_inline_variables < 201606)
  94. # define BOOST_NO_CXX17_INLINE_VARIABLES
  95. #endif
  96. #if !defined(__cpp_fold_expressions) || (__cpp_fold_expressions < 201603)
  97. # define BOOST_NO_CXX17_FOLD_EXPRESSIONS
  98. #endif
  99. #if !defined(__cpp_if_constexpr) || (__cpp_if_constexpr < 201606)
  100. # define BOOST_NO_CXX17_IF_CONSTEXPR
  101. #endif
  102. #define BOOST_COMPILER "GCC-XML C++ version " __GCCXML__