From b3faedfe3e55aef2e27d0c196f0c9f61069813b6 Mon Sep 17 00:00:00 2001 From: Peter Dimov Date: Tue, 10 Jan 2023 03:09:20 +0200 Subject: [PATCH] Extend Clang 6 workaround to Clang 7 under Android. Fixes #100. --- include/boost/system/detail/config.hpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/include/boost/system/detail/config.hpp b/include/boost/system/detail/config.hpp index 2dbb2f99b..4164b53c9 100644 --- a/include/boost/system/detail/config.hpp +++ b/include/boost/system/detail/config.hpp @@ -64,7 +64,9 @@ // BOOST_SYSTEM_CLANG_6 -#if defined(__clang__) && (__clang_major__ < 7 || (defined(__APPLE__) && __clang_major__ < 11)) +// Android NDK r18b has Clang 7.0.2 that still needs the workaround +// https://github.com/boostorg/system/issues/100 +#if defined(__clang__) && (__clang_major__ < 7 || (defined(__APPLE__) && __clang_major__ < 11) || (defined(__ANDROID__) && __clang_major__ == 7)) # define BOOST_SYSTEM_CLANG_6 #endif