Boost C++ Libraries: Ticket #7841: A macro to detect real GCC https://svn.boost.org/trac10/ticket/7841 <p> Please provide a macro to detect the real GCC. Different compilers try to emulate GCC by defining <span class="underline">GNUC</span> 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: </p> <pre class="wiki">#define BOOST_GCC (__GNUC__ * 10000 + __GNUC_MINOR__ * 100 + __GNUC_PATCHLEVEL__) </pre><p> This macro only has to be defined in compiler/gcc.hpp. </p> en-us Boost C++ Libraries /htdocs/site/boost.png https://svn.boost.org/trac10/ticket/7841 Trac 1.4.3 John Maddock Tue, 19 Feb 2013 16:26:09 GMT <link>https://svn.boost.org/trac10/ticket/7841#comment:1 </link> <guid isPermaLink="false">https://svn.boost.org/trac10/ticket/7841#comment:1</guid> <description> <p> (In <a class="changeset" href="https://svn.boost.org/trac10/changeset/83008" title="Add new macro BOOST_GCC as per #7841. Refs #7841.">[83008]</a>) Add new macro BOOST_GCC as per <a class="closed ticket" href="https://svn.boost.org/trac10/ticket/7841" title="#7841: Feature Requests: A macro to detect real GCC (closed: fixed)">#7841</a>. Refs <a class="closed ticket" href="https://svn.boost.org/trac10/ticket/7841" title="#7841: Feature Requests: A macro to detect real GCC (closed: fixed)">#7841</a>. </p> </description> <category>Ticket</category> </item> <item> <dc:creator>John Maddock</dc:creator> <pubDate>Tue, 19 Feb 2013 17:11:39 GMT</pubDate> <title/> <link>https://svn.boost.org/trac10/ticket/7841#comment:2 </link> <guid isPermaLink="false">https://svn.boost.org/trac10/ticket/7841#comment:2</guid> <description> <p> (In <a class="changeset" href="https://svn.boost.org/trac10/changeset/83012" title="Fix __Int128 support on CUDA. Exclude BOOST_GCC from getting defined ...">[83012]</a>) Fix <span class="underline">Int128 support on CUDA. Exclude BOOST_GCC from getting defined on CUDA. Refs <a class="closed ticket" href="https://svn.boost.org/trac10/ticket/8048" title="#8048: Bugs: Boost 1.53 + GCC 4.6.3 __int128 undefined. (closed: fixed)">#8048</a>. Refs <a class="closed ticket" href="https://svn.boost.org/trac10/ticket/7841" title="#7841: Feature Requests: A macro to detect real GCC (closed: fixed)">#7841</a>. </span></p> </description> <category>Ticket</category> </item> <item> <dc:creator>John Maddock</dc:creator> <pubDate>Sun, 24 Feb 2013 19:08:04 GMT</pubDate> <title>status changed; resolution set https://svn.boost.org/trac10/ticket/7841#comment:3 https://svn.boost.org/trac10/ticket/7841#comment:3 <ul> <li><strong>status</strong> <span class="trac-field-old">new</span> → <span class="trac-field-new">closed</span> </li> <li><strong>resolution</strong> → <span class="trac-field-new">fixed</span> </li> </ul> <p> (In <a class="changeset" href="https://svn.boost.org/trac10/changeset/83139" title="Merge changes from Trunk. Fixes #6013. Fixes #7151. Fixes #7359. Fixes ...">[83139]</a>) Merge changes from Trunk. Fixes <a class="closed ticket" href="https://svn.boost.org/trac10/ticket/6013" title="#6013: Patches: endian.hpp header patch to utilize OpenBSD's endian header (closed: fixed)">#6013</a>. Fixes <a class="closed ticket" href="https://svn.boost.org/trac10/ticket/7151" title="#7151: Bugs: config.hpp does not define BOOST_HAS_TR1_TUPLE (closed: fixed)">#7151</a>. Fixes <a class="closed ticket" href="https://svn.boost.org/trac10/ticket/7359" title="#7359: Bugs: Compatibility with Intel icpc 13.0 when using -use-clang-env option on ... (closed: fixed)">#7359</a>. Fixes <a class="closed ticket" href="https://svn.boost.org/trac10/ticket/7389" title="#7389: Bugs: __STDC_LIMIT_MACROS can be redefined by boost when using mingw32 (closed: fixed)">#7389</a>. Fixes <a class="closed ticket" href="https://svn.boost.org/trac10/ticket/7452" title="#7452: Patches: Compiling Boost.Asio Example Error [with Clang compiled by MinGW gcc] (closed: fixed)">#7452</a>. Fixes <a class="closed ticket" href="https://svn.boost.org/trac10/ticket/7528" title="#7528: Bugs: Compilation failure on Android and Xbox 360 (closed: fixed)">#7528</a>. Fixes <a class="closed ticket" href="https://svn.boost.org/trac10/ticket/7703" title="#7703: Bugs: endian.hpp for QNX / BlackBerry10 (closed: fixed)">#7703</a>. Fixes <a class="closed ticket" href="https://svn.boost.org/trac10/ticket/7841" title="#7841: Feature Requests: A macro to detect real GCC (closed: fixed)">#7841</a>. Fixes <a class="closed ticket" href="https://svn.boost.org/trac10/ticket/7898" title="#7898: Bugs: TI compiller: wrong decision about type_info presence in boost/config (closed: fixed)">#7898</a>. Fixes <a class="closed ticket" href="https://svn.boost.org/trac10/ticket/7938" title="#7938: Patches: Support vxWorks (closed: fixed)">#7938</a>. Fixes <a class="closed ticket" href="https://svn.boost.org/trac10/ticket/8048" title="#8048: Bugs: Boost 1.53 + GCC 4.6.3 __int128 undefined. (closed: fixed)">#8048</a>. </p> Ticket