Compare commits

...

4 Commits

Author SHA1 Message Date
Peter Dimov
1d2698c1f6 Update BOOST_CLANG_VERSION for Xcode 14.3, 15.0, 15.1 2023-10-25 15:24:23 +03:00
jzmaddock
a98574fc12 Merge pull request #487 from chrstphrchvz/patch-1
Use `__apple_build_version__` to detect Apple clang
2023-10-25 00:04:31 +01:00
Christopher Chavez
9c34fb6585 Use __apple_build_version__ to detect Apple clang
…since __APPLE__ is defined by both Apple Clang and LLVM.org Clang
on Apple platforms.
2023-10-20 17:15:12 -05:00
jzmaddock
54afd34839 Merge pull request #485 from boostorg/cpp23feature_test
Add C++23 feature test macro support.
2023-10-14 09:26:22 +01:00

View File

@@ -2,7 +2,7 @@
// Distributed under the Boost Software License, Version 1.0.
// https://www.boost.org/LICENSE_1_0.txt)
#if !defined(__APPLE__)
#if !defined(__apple_build_version__)
# define BOOST_CLANG_VERSION (__clang_major__ * 10000 + __clang_minor__ * 100 + __clang_patchlevel__ % 100)
@@ -11,7 +11,13 @@
// https://en.wikipedia.org/wiki/Xcode#Toolchain_versions
# if BOOST_CLANG_REPORTED_VERSION >= 140000
# if BOOST_CLANG_REPORTED_VERSION >= 150000
# define BOOST_CLANG_VERSION 160000
# elif BOOST_CLANG_REPORTED_VERSION >= 140003
# define BOOST_CLANG_VERSION 150000
# elif BOOST_CLANG_REPORTED_VERSION >= 140000
# define BOOST_CLANG_VERSION 140000
# elif BOOST_CLANG_REPORTED_VERSION >= 130100