Chris@16
|
1 /*
|
Chris@101
|
2 Copyright Rene Rivera 2008-2014
|
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_LLVM_H
|
Chris@16
|
9 #define BOOST_PREDEF_COMPILER_LLVM_H
|
Chris@16
|
10
|
Chris@101
|
11 /* Other compilers that emulate this one need to be detected first. */
|
Chris@101
|
12
|
Chris@101
|
13 #include <boost/predef/compiler/clang.h>
|
Chris@101
|
14
|
Chris@16
|
15 #include <boost/predef/version_number.h>
|
Chris@16
|
16 #include <boost/predef/make.h>
|
Chris@16
|
17
|
Chris@16
|
18 /*`
|
Chris@16
|
19 [heading `BOOST_COMP_LLVM`]
|
Chris@16
|
20
|
Chris@16
|
21 [@http://en.wikipedia.org/wiki/LLVM LLVM] compiler.
|
Chris@16
|
22
|
Chris@16
|
23 [table
|
Chris@16
|
24 [[__predef_symbol__] [__predef_version__]]
|
Chris@16
|
25
|
Chris@16
|
26 [[`__llvm__`] [__predef_detection__]]
|
Chris@16
|
27 ]
|
Chris@16
|
28 */
|
Chris@16
|
29
|
Chris@16
|
30 #define BOOST_COMP_LLVM BOOST_VERSION_NUMBER_NOT_AVAILABLE
|
Chris@16
|
31
|
Chris@16
|
32 #if defined(__llvm__)
|
Chris@101
|
33 # define BOOST_COMP_LLVM_DETECTION BOOST_VERSION_NUMBER_AVAILABLE
|
Chris@16
|
34 #endif
|
Chris@16
|
35
|
Chris@101
|
36 #ifdef BOOST_COMP_LLVM_DETECTION
|
Chris@101
|
37 # if defined(BOOST_PREDEF_DETAIL_COMP_DETECTED)
|
Chris@101
|
38 # define BOOST_COMP_LLVM_EMULATED BOOST_COMP_LLVM_DETECTION
|
Chris@101
|
39 # else
|
Chris@101
|
40 # undef BOOST_COMP_LLVM
|
Chris@101
|
41 # define BOOST_COMP_LLVM BOOST_COMP_LLVM_DETECTION
|
Chris@101
|
42 # endif
|
Chris@16
|
43 # define BOOST_COMP_LLVM_AVAILABLE
|
Chris@101
|
44 # include <boost/predef/detail/comp_detected.h>
|
Chris@16
|
45 #endif
|
Chris@16
|
46
|
Chris@16
|
47 #define BOOST_COMP_LLVM_NAME "LLVM"
|
Chris@16
|
48
|
Chris@16
|
49 #include <boost/predef/detail/test.h>
|
Chris@16
|
50 BOOST_PREDEF_DECLARE_TEST(BOOST_COMP_LLVM,BOOST_COMP_LLVM_NAME)
|
Chris@16
|
51
|
Chris@101
|
52 #ifdef BOOST_COMP_LLVM_EMULATED
|
Chris@101
|
53 #include <boost/predef/detail/test.h>
|
Chris@101
|
54 BOOST_PREDEF_DECLARE_TEST(BOOST_COMP_LLVM_EMULATED,BOOST_COMP_LLVM_NAME)
|
Chris@101
|
55 #endif
|
Chris@101
|
56
|
Chris@16
|
57
|
Chris@16
|
58 #endif
|