pgi.hpp 4.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155
  1. // (C) Copyright Noel Belcourt 2007.
  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. // PGI C++ compiler setup:
  7. #define BOOST_COMPILER_VERSION __PGIC__##__PGIC_MINOR__
  8. #define BOOST_COMPILER "PGI compiler version " BOOST_STRINGIZE(BOOST_COMPILER_VERSION)
  9. //
  10. // Threading support:
  11. // Turn this on unconditionally here, it will get turned off again later
  12. // if no threading API is detected.
  13. //
  14. #if __PGIC__ >= 11
  15. // options requested by configure --enable-test
  16. #define BOOST_HAS_PTHREADS
  17. #define BOOST_HAS_THREADS
  18. #define BOOST_HAS_PTHREAD_YIELD
  19. #define BOOST_HAS_NRVO
  20. #define BOOST_HAS_LONG_LONG
  21. // options --enable-test wants undefined
  22. #undef BOOST_NO_STDC_NAMESPACE
  23. #undef BOOST_NO_EXCEPTION_STD_NAMESPACE
  24. #undef BOOST_DEDUCED_TYPENAME
  25. #define BOOST_FUNCTION_SCOPE_USING_DECLARATION_BREAKS_ADL
  26. #define BOOST_NO_TWO_PHASE_NAME_LOOKUP
  27. #define BOOST_NO_CXX11_AUTO_MULTIDECLARATIONS
  28. #define BOOST_NO_CXX11_AUTO_DECLARATIONS
  29. #elif __PGIC__ >= 10
  30. // options requested by configure --enable-test
  31. #define BOOST_HAS_THREADS
  32. #define BOOST_HAS_NRVO
  33. #define BOOST_HAS_LONG_LONG
  34. #if defined(linux) || defined(__linux) || defined(__linux__)
  35. # define BOOST_HAS_STDINT_H
  36. #endif
  37. // options --enable-test wants undefined
  38. #undef BOOST_NO_STDC_NAMESPACE
  39. #undef BOOST_NO_EXCEPTION_STD_NAMESPACE
  40. #undef BOOST_DEDUCED_TYPENAME
  41. #elif __PGIC__ >= 7
  42. #define BOOST_FUNCTION_SCOPE_USING_DECLARATION_BREAKS_ADL
  43. #define BOOST_NO_TWO_PHASE_NAME_LOOKUP
  44. #define BOOST_NO_SWPRINTF
  45. #define BOOST_NO_CXX11_AUTO_MULTIDECLARATIONS
  46. #define BOOST_NO_CXX11_AUTO_DECLARATIONS
  47. #else
  48. # error "Pgi compiler not configured - please reconfigure"
  49. #endif
  50. //
  51. // C++0x features
  52. //
  53. // See boost\config\suffix.hpp for BOOST_NO_LONG_LONG
  54. //
  55. #define BOOST_NO_CXX11_CHAR16_T
  56. #define BOOST_NO_CXX11_CHAR32_T
  57. #define BOOST_NO_CXX11_CONSTEXPR
  58. #define BOOST_NO_CXX11_DECLTYPE
  59. #define BOOST_NO_CXX11_DECLTYPE_N3276
  60. #define BOOST_NO_CXX11_DEFAULTED_FUNCTIONS
  61. #define BOOST_NO_CXX11_DELETED_FUNCTIONS
  62. #define BOOST_NO_CXX11_EXPLICIT_CONVERSION_OPERATORS
  63. #define BOOST_NO_CXX11_EXTERN_TEMPLATE
  64. #define BOOST_NO_CXX11_FUNCTION_TEMPLATE_DEFAULT_ARGS
  65. #define BOOST_NO_CXX11_LAMBDAS
  66. #define BOOST_NO_CXX11_LOCAL_CLASS_TEMPLATE_PARAMETERS
  67. #define BOOST_NO_CXX11_NOEXCEPT
  68. #define BOOST_NO_CXX11_NULLPTR
  69. #define BOOST_NO_CXX11_NUMERIC_LIMITS
  70. #define BOOST_NO_CXX11_RANGE_BASED_FOR
  71. #define BOOST_NO_CXX11_RAW_LITERALS
  72. #define BOOST_NO_CXX11_RVALUE_REFERENCES
  73. #define BOOST_NO_CXX11_SCOPED_ENUMS
  74. #define BOOST_NO_SFINAE_EXPR
  75. #define BOOST_NO_CXX11_STATIC_ASSERT
  76. #define BOOST_NO_SWPRINTF
  77. #define BOOST_NO_CXX11_TEMPLATE_ALIASES
  78. #define BOOST_NO_CXX11_UNICODE_LITERALS
  79. #define BOOST_NO_CXX11_VARIADIC_TEMPLATES
  80. #define BOOST_NO_CXX11_VARIADIC_MACROS
  81. #define BOOST_NO_CXX11_UNIFIED_INITIALIZATION_SYNTAX
  82. #define BOOST_NO_CXX11_HDR_UNORDERED_SET
  83. #define BOOST_NO_CXX11_HDR_UNORDERED_MAP
  84. #define BOOST_NO_CXX11_HDR_TYPEINDEX
  85. #define BOOST_NO_CXX11_HDR_TYPE_TRAITS
  86. #define BOOST_NO_CXX11_HDR_TUPLE
  87. #define BOOST_NO_CXX11_HDR_THREAD
  88. #define BOOST_NO_CXX11_HDR_SYSTEM_ERROR
  89. #define BOOST_NO_CXX11_HDR_REGEX
  90. #define BOOST_NO_CXX11_HDR_RATIO
  91. #define BOOST_NO_CXX11_HDR_RANDOM
  92. #define BOOST_NO_CXX11_HDR_MUTEX
  93. #define BOOST_NO_CXX11_HDR_INITIALIZER_LIST
  94. #define BOOST_NO_CXX11_HDR_FUTURE
  95. #define BOOST_NO_CXX11_HDR_FORWARD_LIST
  96. #define BOOST_NO_CXX11_HDR_CONDITION_VARIABLE
  97. #define BOOST_NO_CXX11_HDR_CODECVT
  98. #define BOOST_NO_CXX11_HDR_CHRONO
  99. #define BOOST_NO_CXX11_HDR_ARRAY
  100. #define BOOST_NO_CXX11_USER_DEFINED_LITERALS
  101. #define BOOST_NO_CXX11_ALIGNAS
  102. #define BOOST_NO_CXX11_TRAILING_RESULT_TYPES
  103. #define BOOST_NO_CXX11_INLINE_NAMESPACES
  104. #define BOOST_NO_CXX11_REF_QUALIFIERS
  105. #define BOOST_NO_CXX11_FINAL
  106. // C++ 14:
  107. #if !defined(__cpp_aggregate_nsdmi) || (__cpp_aggregate_nsdmi < 201304)
  108. # define BOOST_NO_CXX14_AGGREGATE_NSDMI
  109. #endif
  110. #if !defined(__cpp_binary_literals) || (__cpp_binary_literals < 201304)
  111. # define BOOST_NO_CXX14_BINARY_LITERALS
  112. #endif
  113. #if !defined(__cpp_constexpr) || (__cpp_constexpr < 201304)
  114. # define BOOST_NO_CXX14_CONSTEXPR
  115. #endif
  116. #if !defined(__cpp_decltype_auto) || (__cpp_decltype_auto < 201304)
  117. # define BOOST_NO_CXX14_DECLTYPE_AUTO
  118. #endif
  119. #if (__cplusplus < 201304) // There's no SD6 check for this....
  120. # define BOOST_NO_CXX14_DIGIT_SEPARATORS
  121. #endif
  122. #if !defined(__cpp_generic_lambdas) || (__cpp_generic_lambdas < 201304)
  123. # define BOOST_NO_CXX14_GENERIC_LAMBDAS
  124. #endif
  125. #if !defined(__cpp_init_captures) || (__cpp_init_captures < 201304)
  126. # define BOOST_NO_CXX14_INITIALIZED_LAMBDA_CAPTURES
  127. #endif
  128. #if !defined(__cpp_return_type_deduction) || (__cpp_return_type_deduction < 201304)
  129. # define BOOST_NO_CXX14_RETURN_TYPE_DEDUCTION
  130. #endif
  131. #if !defined(__cpp_variable_templates) || (__cpp_variable_templates < 201304)
  132. # define BOOST_NO_CXX14_VARIABLE_TEMPLATES
  133. #endif
  134. //
  135. // version check:
  136. // probably nothing to do here?