annotate DEPENDENCIES/generic/include/boost/predef/compiler/gcc.h @ 133:4acb5d8d80b6 tip

Don't fail environmental check if README.md exists (but .txt and no-suffix don't)
author Chris Cannam
date Tue, 30 Jul 2019 12:25:44 +0100
parents c530137014c0
children
rev   line source
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_GCC_H
Chris@16 9 #define BOOST_PREDEF_COMPILER_GCC_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_GNUC`]
Chris@16 20
Chris@16 21 [@http://en.wikipedia.org/wiki/GNU_Compiler_Collection Gnu GCC C/C++] compiler.
Chris@16 22 Version number available as major, minor, and patch (if available).
Chris@16 23
Chris@16 24 [table
Chris@16 25 [[__predef_symbol__] [__predef_version__]]
Chris@16 26
Chris@16 27 [[`__GNUC__`] [__predef_detection__]]
Chris@16 28
Chris@16 29 [[`__GNUC__`, `__GNUC_MINOR__`, `__GNUC_PATCHLEVEL__`] [V.R.P]]
Chris@16 30 [[`__GNUC__`, `__GNUC_MINOR__`] [V.R.0]]
Chris@16 31 ]
Chris@16 32 */
Chris@16 33
Chris@16 34 #define BOOST_COMP_GNUC BOOST_VERSION_NUMBER_NOT_AVAILABLE
Chris@16 35
Chris@16 36 #if defined(__GNUC__)
Chris@101 37 # if !defined(BOOST_COMP_GNUC_DETECTION) && defined(__GNUC_PATCHLEVEL__)
Chris@101 38 # define BOOST_COMP_GNUC_DETECTION \
Chris@16 39 BOOST_VERSION_NUMBER(__GNUC__,__GNUC_MINOR__,__GNUC_PATCHLEVEL__)
Chris@16 40 # endif
Chris@101 41 # if !defined(BOOST_COMP_GNUC_DETECTION)
Chris@101 42 # define BOOST_COMP_GNUC_DETECTION \
Chris@16 43 BOOST_VERSION_NUMBER(__GNUC__,__GNUC_MINOR__,0)
Chris@16 44 # endif
Chris@16 45 #endif
Chris@16 46
Chris@101 47 #ifdef BOOST_COMP_GNUC_DETECTION
Chris@101 48 # if defined(BOOST_PREDEF_DETAIL_COMP_DETECTED)
Chris@101 49 # define BOOST_COMP_GNUC_EMULATED BOOST_COMP_GNUC_DETECTION
Chris@101 50 # else
Chris@101 51 # undef BOOST_COMP_GNUC
Chris@101 52 # define BOOST_COMP_GNUC BOOST_COMP_GNUC_DETECTION
Chris@101 53 # endif
Chris@16 54 # define BOOST_COMP_GNUC_AVAILABLE
Chris@101 55 # include <boost/predef/detail/comp_detected.h>
Chris@16 56 #endif
Chris@16 57
Chris@16 58 #define BOOST_COMP_GNUC_NAME "Gnu GCC C/C++"
Chris@16 59
Chris@16 60 #include <boost/predef/detail/test.h>
Chris@16 61 BOOST_PREDEF_DECLARE_TEST(BOOST_COMP_GNUC,BOOST_COMP_GNUC_NAME)
Chris@16 62
Chris@101 63 #ifdef BOOST_COMP_GNUC_EMULATED
Chris@101 64 #include <boost/predef/detail/test.h>
Chris@101 65 BOOST_PREDEF_DECLARE_TEST(BOOST_COMP_GNUC_EMULATED,BOOST_COMP_GNUC_NAME)
Chris@101 66 #endif
Chris@101 67
Chris@16 68
Chris@16 69 #endif