From 9c34fb6585eab4f55fe9a979126963ebaa04423e Mon Sep 17 00:00:00 2001 From: Christopher Chavez Date: Fri, 20 Oct 2023 17:15:12 -0500 Subject: [PATCH] Use __apple_build_version__ to detect Apple clang MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit …since __APPLE__ is defined by both Apple Clang and LLVM.org Clang on Apple platforms. --- include/boost/config/compiler/clang_version.hpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/boost/config/compiler/clang_version.hpp b/include/boost/config/compiler/clang_version.hpp index 70c5507c4..48feef89e 100644 --- a/include/boost/config/compiler/clang_version.hpp +++ b/include/boost/config/compiler/clang_version.hpp @@ -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)