Subject: [Boost-bugs] [Boost C++ Libraries] #7841: A macro to detect real GCC
From: Boost C++ Libraries (noreply_at_[hidden])
Date: 2013-01-02 18:59:50
#7841: A macro to detect real GCC
------------------------------+---------------------------------------------
Reporter: andysem | Owner: johnmaddock
Type: Feature Requests | Status: new
Milestone: To Be Determined | Component: config
Version: Boost 1.52.0 | Severity: Problem
Keywords: |
------------------------------+---------------------------------------------
Please provide a macro to detect the real GCC. Different compilers try to
emulate GCC by defining __GNUC__ and similar macros, which makes it
difficult to work around GCC-specific bugs. The macro can expand to the
GCC version number, like BOOST_MSVC:
{{{
#define BOOST_GCC (__GNUC__ * 10000 + __GNUC_MINOR__ * 100 +
__GNUC_PATCHLEVEL__)
}}}
This macro only has to be defined in compiler/gcc.hpp.
-- Ticket URL: <https://svn.boost.org/trac/boost/ticket/7841> Boost C++ Libraries <http://www.boost.org/> Boost provides free peer-reviewed portable C++ source libraries.
This archive was generated by hypermail 2.1.7 : 2017-02-16 18:50:11 UTC