Skip to content

Commit 9eaeeb7

Browse files
committed
Use __clang_patchlevel__ % 100, because __clang_patchlevel__ is 300080 for Android NDK r16b (refs boostorg/assert#28)
1 parent acd45ca commit 9eaeeb7

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

include/boost/config/compiler/clang_version.hpp

+2-2
Original file line numberDiff line numberDiff line change
@@ -4,10 +4,10 @@
44

55
#if !defined(__APPLE__)
66

7-
# define BOOST_CLANG_VERSION (__clang_major__ * 10000 + __clang_minor__ * 100 + __clang_patchlevel__)
7+
# define BOOST_CLANG_VERSION (__clang_major__ * 10000 + __clang_minor__ * 100 + __clang_patchlevel__ % 100)
88

99
#else
10-
# define BOOST_CLANG_REPORTED_VERSION (__clang_major__ * 10000 + __clang_minor__ * 100 + __clang_patchlevel__)
10+
# define BOOST_CLANG_REPORTED_VERSION (__clang_major__ * 10000 + __clang_minor__ * 100 + __clang_patchlevel__ % 100)
1111

1212
// https://en.wikipedia.org/wiki/Xcode#Toolchain_versions
1313

0 commit comments

Comments
 (0)