summaryrefslogtreecommitdiff
path: root/boost/config/stdlib/libcpp.hpp
diff options
context:
space:
mode:
Diffstat (limited to 'boost/config/stdlib/libcpp.hpp')
-rw-r--r--boost/config/stdlib/libcpp.hpp56
1 files changed, 11 insertions, 45 deletions
diff --git a/boost/config/stdlib/libcpp.hpp b/boost/config/stdlib/libcpp.hpp
index c7daab1f0b..0e9f2445ed 100644
--- a/boost/config/stdlib/libcpp.hpp
+++ b/boost/config/stdlib/libcpp.hpp
@@ -104,7 +104,7 @@
# define BOOST_NO_CXX98_BINDERS
#endif
-#ifdef __has_include
+#if defined(__cplusplus) && defined(__has_include)
#if __has_include(<version>)
#include <version>
@@ -115,50 +115,7 @@
#define BOOST_NO_CXX17_STD_INVOKE
#endif
-#if !defined(__cpp_lib_bit_cast) || (__cpp_lib_bit_cast < 201806L) || !defined(__cpp_lib_bitops) || (__cpp_lib_bitops < 201907L) || !defined(__cpp_lib_endian) || (__cpp_lib_endian < 201907L)
-# define BOOST_NO_CXX20_HDR_BIT
-#endif
-#if !defined(__cpp_lib_three_way_comparison) || (__cpp_lib_three_way_comparison < 201907L)
-# define BOOST_NO_CXX20_HDR_COMPARE
-#endif
-#if !defined(__cpp_lib_ranges) || (__cpp_lib_ranges < 201911L)
-# define BOOST_NO_CXX20_HDR_RANGES
-#endif
-#if !defined(__cpp_lib_barrier) || (__cpp_lib_barrier < 201907L)
-# define BOOST_NO_CXX20_HDR_BARRIER
-#endif
-#if !defined(__cpp_lib_format) || (__cpp_lib_format < 201907L)
-# define BOOST_NO_CXX20_HDR_FORMAT
-#endif
-#if !defined(__cpp_lib_source_location) || (__cpp_lib_source_location < 201907L)
-# define BOOST_NO_CXX20_HDR_SOURCE_LOCATION
-#endif
-#if !defined(__cpp_lib_latch) || (__cpp_lib_latch < 201907L)
-# define BOOST_NO_CXX20_HDR_SOURCE_LATCH
-#endif
-#if !defined(__cpp_lib_span) || (__cpp_lib_span < 202002L)
-# define BOOST_NO_CXX20_HDR_SOURCE_SPAN
-#endif
-#if !defined(__cpp_lib_math_constants) || (__cpp_lib_math_constants < 201907L)
-# define BOOST_NO_CXX20_HDR_SOURCE_NUMBERS
-#endif
-#if !defined(__cpp_lib_jthread) || (__cpp_lib_jthread < 201911L)
-# define BOOST_NO_CXX20_HDR_SOURCE_STOP_TOKEN
-#endif
-#if !defined(__cpp_lib_concepts) || (__cpp_lib_concepts < 202002L)
-# define BOOST_NO_CXX20_HDR_SOURCE_STOP_CONCEPTS
-#endif
-#if !defined(__cpp_lib_syncbuf) || (__cpp_lib_syncbuf < 201803L)
-# define BOOST_NO_CXX20_HDR_SYNCSTREAM
-#endif
-#if !defined(__cpp_lib_coroutine) || (__cpp_lib_coroutine < 201902L)
-# define BOOST_NO_CXX20_HDR_COROUTINE
-#endif
-#if !defined(__cpp_lib_semaphore) || (__cpp_lib_semaphore < 201907L)
-# define BOOST_NO_CXX20_HDR_SEMAPHORE
-#endif
-
-#if(_LIBCPP_VERSION < 9000) && !defined(BOOST_NO_CXX20_HDR_SPAN)
+#if(_LIBCPP_VERSION < 9000)
// as_writable_bytes is missing.
# define BOOST_NO_CXX20_HDR_SPAN
#endif
@@ -211,4 +168,13 @@
# define BOOST_NO_CXX14_HDR_SHARED_MUTEX
#endif
+#if _LIBCPP_VERSION >= 15000
+//
+// Unary function is now deprecated in C++11 and later:
+//
+#if __cplusplus >= 201103L
+#define BOOST_NO_CXX98_FUNCTION_BASE
+#endif
+#endif
+
// --- end ---