comparison DEPENDENCIES/generic/include/boost/predef/compiler/gcc.h @ 101:c530137014c0

Update Boost headers (1.58.0)
author Chris Cannam
date Mon, 07 Sep 2015 11:12:49 +0100
parents 2665513ce2d3
children
comparison
equal deleted inserted replaced
100:793467b5e61c 101:c530137014c0
1 /* 1 /*
2 Copyright Redshift Software, Inc. 2008-2013 2 Copyright Rene Rivera 2008-2014
3 Distributed under the Boost Software License, Version 1.0. 3 Distributed under the Boost Software License, Version 1.0.
4 (See accompanying file LICENSE_1_0.txt or copy at 4 (See accompanying file LICENSE_1_0.txt or copy at
5 http://www.boost.org/LICENSE_1_0.txt) 5 http://www.boost.org/LICENSE_1_0.txt)
6 */ 6 */
7 7
8 #ifndef BOOST_PREDEF_COMPILER_GCC_H 8 #ifndef BOOST_PREDEF_COMPILER_GCC_H
9 #define BOOST_PREDEF_COMPILER_GCC_H 9 #define BOOST_PREDEF_COMPILER_GCC_H
10
11 /* Other compilers that emulate this one need to be detected first. */
12
13 #include <boost/predef/compiler/clang.h>
10 14
11 #include <boost/predef/version_number.h> 15 #include <boost/predef/version_number.h>
12 #include <boost/predef/make.h> 16 #include <boost/predef/make.h>
13 17
14 /*` 18 /*`
28 */ 32 */
29 33
30 #define BOOST_COMP_GNUC BOOST_VERSION_NUMBER_NOT_AVAILABLE 34 #define BOOST_COMP_GNUC BOOST_VERSION_NUMBER_NOT_AVAILABLE
31 35
32 #if defined(__GNUC__) 36 #if defined(__GNUC__)
33 # undef BOOST_COMP_GNUC 37 # if !defined(BOOST_COMP_GNUC_DETECTION) && defined(__GNUC_PATCHLEVEL__)
34 # if !defined(BOOST_COMP_GNUC) && defined(__GNUC_PATCHLEVEL__) 38 # define BOOST_COMP_GNUC_DETECTION \
35 # define BOOST_COMP_GNUC \
36 BOOST_VERSION_NUMBER(__GNUC__,__GNUC_MINOR__,__GNUC_PATCHLEVEL__) 39 BOOST_VERSION_NUMBER(__GNUC__,__GNUC_MINOR__,__GNUC_PATCHLEVEL__)
37 # endif 40 # endif
38 # if !defined(BOOST_COMP_GNUC) 41 # if !defined(BOOST_COMP_GNUC_DETECTION)
39 # define BOOST_COMP_GNUC \ 42 # define BOOST_COMP_GNUC_DETECTION \
40 BOOST_VERSION_NUMBER(__GNUC__,__GNUC_MINOR__,0) 43 BOOST_VERSION_NUMBER(__GNUC__,__GNUC_MINOR__,0)
41 # endif 44 # endif
42 #endif 45 #endif
43 46
44 #if BOOST_COMP_GNUC 47 #ifdef BOOST_COMP_GNUC_DETECTION
48 # if defined(BOOST_PREDEF_DETAIL_COMP_DETECTED)
49 # define BOOST_COMP_GNUC_EMULATED BOOST_COMP_GNUC_DETECTION
50 # else
51 # undef BOOST_COMP_GNUC
52 # define BOOST_COMP_GNUC BOOST_COMP_GNUC_DETECTION
53 # endif
45 # define BOOST_COMP_GNUC_AVAILABLE 54 # define BOOST_COMP_GNUC_AVAILABLE
55 # include <boost/predef/detail/comp_detected.h>
46 #endif 56 #endif
47 57
48 #define BOOST_COMP_GNUC_NAME "Gnu GCC C/C++" 58 #define BOOST_COMP_GNUC_NAME "Gnu GCC C/C++"
49 59
50 #include <boost/predef/detail/test.h> 60 #include <boost/predef/detail/test.h>
51 BOOST_PREDEF_DECLARE_TEST(BOOST_COMP_GNUC,BOOST_COMP_GNUC_NAME) 61 BOOST_PREDEF_DECLARE_TEST(BOOST_COMP_GNUC,BOOST_COMP_GNUC_NAME)
52 62
63 #ifdef BOOST_COMP_GNUC_EMULATED
64 #include <boost/predef/detail/test.h>
65 BOOST_PREDEF_DECLARE_TEST(BOOST_COMP_GNUC_EMULATED,BOOST_COMP_GNUC_NAME)
66 #endif
67
53 68
54 #endif 69 #endif