annotate 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
rev   line source
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_GCC_H
Chris@16 9 #define BOOST_PREDEF_COMPILER_GCC_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_GNUC`]
Chris@16 16
Chris@16 17 [@http://en.wikipedia.org/wiki/GNU_Compiler_Collection Gnu GCC C/C++] compiler.
Chris@16 18 Version number available as major, minor, and patch (if available).
Chris@16 19
Chris@16 20 [table
Chris@16 21 [[__predef_symbol__] [__predef_version__]]
Chris@16 22
Chris@16 23 [[`__GNUC__`] [__predef_detection__]]
Chris@16 24
Chris@16 25 [[`__GNUC__`, `__GNUC_MINOR__`, `__GNUC_PATCHLEVEL__`] [V.R.P]]
Chris@16 26 [[`__GNUC__`, `__GNUC_MINOR__`] [V.R.0]]
Chris@16 27 ]
Chris@16 28 */
Chris@16 29
Chris@16 30 #define BOOST_COMP_GNUC BOOST_VERSION_NUMBER_NOT_AVAILABLE
Chris@16 31
Chris@16 32 #if defined(__GNUC__)
Chris@16 33 # undef BOOST_COMP_GNUC
Chris@16 34 # if !defined(BOOST_COMP_GNUC) && defined(__GNUC_PATCHLEVEL__)
Chris@16 35 # define BOOST_COMP_GNUC \
Chris@16 36 BOOST_VERSION_NUMBER(__GNUC__,__GNUC_MINOR__,__GNUC_PATCHLEVEL__)
Chris@16 37 # endif
Chris@16 38 # if !defined(BOOST_COMP_GNUC)
Chris@16 39 # define BOOST_COMP_GNUC \
Chris@16 40 BOOST_VERSION_NUMBER(__GNUC__,__GNUC_MINOR__,0)
Chris@16 41 # endif
Chris@16 42 #endif
Chris@16 43
Chris@16 44 #if BOOST_COMP_GNUC
Chris@16 45 # define BOOST_COMP_GNUC_AVAILABLE
Chris@16 46 #endif
Chris@16 47
Chris@16 48 #define BOOST_COMP_GNUC_NAME "Gnu GCC C/C++"
Chris@16 49
Chris@16 50 #include <boost/predef/detail/test.h>
Chris@16 51 BOOST_PREDEF_DECLARE_TEST(BOOST_COMP_GNUC,BOOST_COMP_GNUC_NAME)
Chris@16 52
Chris@16 53
Chris@16 54 #endif