Use __apple_build_version__ to detect Apple clang

…since __APPLE__ is defined by both Apple Clang and LLVM.org Clang
on Apple platforms.
This commit is contained in:
Christopher Chavez
2023-10-20 17:15:12 -05:00
committed by GitHub
parent 54afd34839
commit 9c34fb6585

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)