github.com/searKing/golang/go@v1.2.117/os/signal/cgo/include/boost/config/compiler/clang_version.hpp (about) 1 // Copyright 2021 Peter Dimov 2 // Distributed under the Boost Software License, Version 1.0. 3 // https://www.boost.org/LICENSE_1_0.txt) 4 5 #if !defined(__apple_build_version__) 6 7 # define BOOST_CLANG_VERSION (__clang_major__ * 10000 + __clang_minor__ * 100 + __clang_patchlevel__ % 100) 8 9 #else 10 # define BOOST_CLANG_REPORTED_VERSION (__clang_major__ * 10000 + __clang_minor__ * 100 + __clang_patchlevel__ % 100) 11 12 // https://en.wikipedia.org/wiki/Xcode#Toolchain_versions 13 14 # if BOOST_CLANG_REPORTED_VERSION >= 150000 15 # define BOOST_CLANG_VERSION 160000 16 17 # elif BOOST_CLANG_REPORTED_VERSION >= 140003 18 # define BOOST_CLANG_VERSION 150000 19 20 # elif BOOST_CLANG_REPORTED_VERSION >= 140000 21 # define BOOST_CLANG_VERSION 140000 22 23 # elif BOOST_CLANG_REPORTED_VERSION >= 130100 24 # define BOOST_CLANG_VERSION 130000 25 26 # elif BOOST_CLANG_REPORTED_VERSION >= 130000 27 # define BOOST_CLANG_VERSION 120000 28 29 # elif BOOST_CLANG_REPORTED_VERSION >= 120005 30 # define BOOST_CLANG_VERSION 110100 31 32 # elif BOOST_CLANG_REPORTED_VERSION >= 120000 33 # define BOOST_CLANG_VERSION 100000 34 35 # elif BOOST_CLANG_REPORTED_VERSION >= 110003 36 # define BOOST_CLANG_VERSION 90000 37 38 # elif BOOST_CLANG_REPORTED_VERSION >= 110000 39 # define BOOST_CLANG_VERSION 80000 40 41 # elif BOOST_CLANG_REPORTED_VERSION >= 100001 42 # define BOOST_CLANG_VERSION 70000 43 44 # elif BOOST_CLANG_REPORTED_VERSION >= 100000 45 # define BOOST_CLANG_VERSION 60001 46 47 # elif BOOST_CLANG_REPORTED_VERSION >= 90100 48 # define BOOST_CLANG_VERSION 50002 49 50 # elif BOOST_CLANG_REPORTED_VERSION >= 90000 51 # define BOOST_CLANG_VERSION 40000 52 53 # elif BOOST_CLANG_REPORTED_VERSION >= 80000 54 # define BOOST_CLANG_VERSION 30900 55 56 # elif BOOST_CLANG_REPORTED_VERSION >= 70300 57 # define BOOST_CLANG_VERSION 30800 58 59 # elif BOOST_CLANG_REPORTED_VERSION >= 70000 60 # define BOOST_CLANG_VERSION 30700 61 62 # elif BOOST_CLANG_REPORTED_VERSION >= 60100 63 # define BOOST_CLANG_VERSION 30600 64 65 # elif BOOST_CLANG_REPORTED_VERSION >= 60000 66 # define BOOST_CLANG_VERSION 30500 67 68 # elif BOOST_CLANG_REPORTED_VERSION >= 50100 69 # define BOOST_CLANG_VERSION 30400 70 71 # elif BOOST_CLANG_REPORTED_VERSION >= 50000 72 # define BOOST_CLANG_VERSION 30300 73 74 # elif BOOST_CLANG_REPORTED_VERSION >= 40200 75 # define BOOST_CLANG_VERSION 30200 76 77 # elif BOOST_CLANG_REPORTED_VERSION >= 30100 78 # define BOOST_CLANG_VERSION 30100 79 80 # elif BOOST_CLANG_REPORTED_VERSION >= 20100 81 # define BOOST_CLANG_VERSION 30000 82 83 # else 84 # define BOOST_CLANG_VERSION 20900 85 86 # endif 87 88 # undef BOOST_CLANG_REPORTED_VERSION 89 #endif