Use __clang_patchlevel__ % 100, because __clang_patchlevel__ is 300080 for Android NDK r16b (refs boostorg/assert#28)

This commit is contained in:
Peter Dimov
2022-08-29 20:13:53 +03:00
parent acd45ca373
commit 9eaeeb7844

View File

@ -4,10 +4,10 @@
#if !defined(__APPLE__)
# define BOOST_CLANG_VERSION (__clang_major__ * 10000 + __clang_minor__ * 100 + __clang_patchlevel__)
# define BOOST_CLANG_VERSION (__clang_major__ * 10000 + __clang_minor__ * 100 + __clang_patchlevel__ % 100)
#else
# define BOOST_CLANG_REPORTED_VERSION (__clang_major__ * 10000 + __clang_minor__ * 100 + __clang_patchlevel__)
# define BOOST_CLANG_REPORTED_VERSION (__clang_major__ * 10000 + __clang_minor__ * 100 + __clang_patchlevel__ % 100)
// https://en.wikipedia.org/wiki/Xcode#Toolchain_versions