comparison DEPENDENCIES/generic/include/boost/predef/compiler/gcc.h @ 16:2665513ce2d3

Add boost headers
author Chris Cannam
date Tue, 05 Aug 2014 11:11:38 +0100
parents
children c530137014c0
comparison
equal deleted inserted replaced
15:663ca0da4350 16:2665513ce2d3
1 /*
2 Copyright Redshift Software, Inc. 2008-2013
3 Distributed under the Boost Software License, Version 1.0.
4 (See accompanying file LICENSE_1_0.txt or copy at
5 http://www.boost.org/LICENSE_1_0.txt)
6 */
7
8 #ifndef BOOST_PREDEF_COMPILER_GCC_H
9 #define BOOST_PREDEF_COMPILER_GCC_H
10
11 #include <boost/predef/version_number.h>
12 #include <boost/predef/make.h>
13
14 /*`
15 [heading `BOOST_COMP_GNUC`]
16
17 [@http://en.wikipedia.org/wiki/GNU_Compiler_Collection Gnu GCC C/C++] compiler.
18 Version number available as major, minor, and patch (if available).
19
20 [table
21 [[__predef_symbol__] [__predef_version__]]
22
23 [[`__GNUC__`] [__predef_detection__]]
24
25 [[`__GNUC__`, `__GNUC_MINOR__`, `__GNUC_PATCHLEVEL__`] [V.R.P]]
26 [[`__GNUC__`, `__GNUC_MINOR__`] [V.R.0]]
27 ]
28 */
29
30 #define BOOST_COMP_GNUC BOOST_VERSION_NUMBER_NOT_AVAILABLE
31
32 #if defined(__GNUC__)
33 # undef BOOST_COMP_GNUC
34 # if !defined(BOOST_COMP_GNUC) && defined(__GNUC_PATCHLEVEL__)
35 # define BOOST_COMP_GNUC \
36 BOOST_VERSION_NUMBER(__GNUC__,__GNUC_MINOR__,__GNUC_PATCHLEVEL__)
37 # endif
38 # if !defined(BOOST_COMP_GNUC)
39 # define BOOST_COMP_GNUC \
40 BOOST_VERSION_NUMBER(__GNUC__,__GNUC_MINOR__,0)
41 # endif
42 #endif
43
44 #if BOOST_COMP_GNUC
45 # define BOOST_COMP_GNUC_AVAILABLE
46 #endif
47
48 #define BOOST_COMP_GNUC_NAME "Gnu GCC C/C++"
49
50 #include <boost/predef/detail/test.h>
51 BOOST_PREDEF_DECLARE_TEST(BOOST_COMP_GNUC,BOOST_COMP_GNUC_NAME)
52
53
54 #endif