Back to home page

EIC code displayed by LXR

 
 

    


File indexing completed on 2025-01-18 09:48:05

0001 /*
0002 Copyright Rene Rivera 2008-2015
0003 Distributed under the Boost Software License, Version 1.0.
0004 (See accompanying file LICENSE_1_0.txt or copy at
0005 http://www.boost.org/LICENSE_1_0.txt)
0006 */
0007 
0008 #ifndef BOOST_PREDEF_COMPILER_GCC_H
0009 #define BOOST_PREDEF_COMPILER_GCC_H
0010 
0011 /* Other compilers that emulate this one need to be detected first. */
0012 
0013 #include <boost/predef/compiler/clang.h>
0014 
0015 #include <boost/predef/version_number.h>
0016 #include <boost/predef/make.h>
0017 
0018 /* tag::reference[]
0019 = `BOOST_COMP_GNUC`
0020 
0021 http://en.wikipedia.org/wiki/GNU_Compiler_Collection[Gnu GCC C/{CPP}] compiler.
0022 Version number available as major, minor, and patch (if available).
0023 
0024 [options="header"]
0025 |===
0026 | {predef_symbol} | {predef_version}
0027 
0028 | `+__GNUC__+` | {predef_detection}
0029 
0030 | `+__GNUC__+`, `+__GNUC_MINOR__+`, `+__GNUC_PATCHLEVEL__+` | V.R.P
0031 | `+__GNUC__+`, `+__GNUC_MINOR__+` | V.R.0
0032 |===
0033 */ // end::reference[]
0034 
0035 #define BOOST_COMP_GNUC BOOST_VERSION_NUMBER_NOT_AVAILABLE
0036 
0037 #if defined(__GNUC__)
0038 #   if !defined(BOOST_COMP_GNUC_DETECTION) && defined(__GNUC_PATCHLEVEL__)
0039 #       define BOOST_COMP_GNUC_DETECTION \
0040             BOOST_VERSION_NUMBER(__GNUC__,__GNUC_MINOR__,__GNUC_PATCHLEVEL__)
0041 #   endif
0042 #   if !defined(BOOST_COMP_GNUC_DETECTION)
0043 #       define BOOST_COMP_GNUC_DETECTION \
0044             BOOST_VERSION_NUMBER(__GNUC__,__GNUC_MINOR__,0)
0045 #   endif
0046 #endif
0047 
0048 #ifdef BOOST_COMP_GNUC_DETECTION
0049 #   if defined(BOOST_PREDEF_DETAIL_COMP_DETECTED)
0050 #       define BOOST_COMP_GNUC_EMULATED BOOST_COMP_GNUC_DETECTION
0051 #   else
0052 #       undef BOOST_COMP_GNUC
0053 #       define BOOST_COMP_GNUC BOOST_COMP_GNUC_DETECTION
0054 #   endif
0055 #   define BOOST_COMP_GNUC_AVAILABLE
0056 #   include <boost/predef/detail/comp_detected.h>
0057 #endif
0058 
0059 #define BOOST_COMP_GNUC_NAME "Gnu GCC C/C++"
0060 
0061 #endif
0062 
0063 #include <boost/predef/detail/test.h>
0064 BOOST_PREDEF_DECLARE_TEST(BOOST_COMP_GNUC,BOOST_COMP_GNUC_NAME)
0065 
0066 #ifdef BOOST_COMP_GNUC_EMULATED
0067 #include <boost/predef/detail/test.h>
0068 BOOST_PREDEF_DECLARE_TEST(BOOST_COMP_GNUC_EMULATED,BOOST_COMP_GNUC_NAME)
0069 #endif