Chris@16
|
1 /*
|
Chris@16
|
2 Copyright Redshift Software, Inc. 2008-2013
|
Chris@16
|
3 Distributed under the Boost Software License, Version 1.0.
|
Chris@16
|
4 (See accompanying file LICENSE_1_0.txt or copy at
|
Chris@16
|
5 http://www.boost.org/LICENSE_1_0.txt)
|
Chris@16
|
6 */
|
Chris@16
|
7
|
Chris@16
|
8 #ifndef BOOST_PREDEF_COMPILER_CLANG_H
|
Chris@16
|
9 #define BOOST_PREDEF_COMPILER_CLANG_H
|
Chris@16
|
10
|
Chris@16
|
11 #include <boost/predef/version_number.h>
|
Chris@16
|
12 #include <boost/predef/make.h>
|
Chris@16
|
13
|
Chris@16
|
14 /*`
|
Chris@16
|
15 [heading `BOOST_COMP_CLANG`]
|
Chris@16
|
16
|
Chris@16
|
17 [@http://en.wikipedia.org/wiki/Clang Clang] compiler.
|
Chris@16
|
18 Version number available as major, minor, and patch.
|
Chris@16
|
19
|
Chris@16
|
20 [table
|
Chris@16
|
21 [[__predef_symbol__] [__predef_version__]]
|
Chris@16
|
22
|
Chris@16
|
23 [[`__clang__`] [__predef_detection__]]
|
Chris@16
|
24
|
Chris@16
|
25 [[`__clang_major__`, `__clang_minor__`, `__clang_patchlevel__`] [V.R.P]]
|
Chris@16
|
26 ]
|
Chris@16
|
27 */
|
Chris@16
|
28
|
Chris@16
|
29 #define BOOST_COMP_CLANG BOOST_VERSION_NUMBER_NOT_AVAILABLE
|
Chris@16
|
30
|
Chris@16
|
31 #if defined(__clang__)
|
Chris@16
|
32 # undef BOOST_COMP_CLANG
|
Chris@16
|
33 # define BOOST_COMP_CLANG BOOST_VERSION_NUMBER(__clang_major__,__clang_minor__,__clang_patchlevel__)
|
Chris@16
|
34 #endif
|
Chris@16
|
35
|
Chris@16
|
36 #if BOOST_COMP_CLANG
|
Chris@16
|
37 # define BOOST_COMP_CLANG_AVAILABLE
|
Chris@16
|
38 #endif
|
Chris@16
|
39
|
Chris@16
|
40 #define BOOST_COMP_CLANG_NAME "Clang"
|
Chris@16
|
41
|
Chris@16
|
42 #include <boost/predef/detail/test.h>
|
Chris@16
|
43 BOOST_PREDEF_DECLARE_TEST(BOOST_COMP_CLANG,BOOST_COMP_CLANG_NAME)
|
Chris@16
|
44
|
Chris@16
|
45
|
Chris@16
|
46 #endif
|