Boost logo

Boost-Commit :

Subject: [Boost-commit] svn:boost r62089 - in trunk: boost/config/compiler libs/config/doc
From: dgregor_at_[hidden]
Date: 2010-05-18 13:55:33


Author: dgregor
Date: 2010-05-18 13:55:32 EDT (Tue, 18 May 2010)
New Revision: 62089
URL: http://svn.boost.org/trac/boost/changeset/62089

Log:
Add a BOOST_CLANG macro to indicate when Clang is used.

Text files modified:
   trunk/boost/config/compiler/clang.hpp | 4 ++++
   trunk/libs/config/doc/macro_reference.qbk | 3 +++
   2 files changed, 7 insertions(+), 0 deletions(-)

Modified: trunk/boost/config/compiler/clang.hpp
==============================================================================
--- trunk/boost/config/compiler/clang.hpp (original)
+++ trunk/boost/config/compiler/clang.hpp 2010-05-18 13:55:32 EDT (Tue, 18 May 2010)
@@ -69,3 +69,7 @@
 #ifndef BOOST_COMPILER
 # define BOOST_COMPILER "Clang version " __clang_version__
 #endif
+
+// Macro used to identify the Clang compiler.
+#define BOOST_CLANG 1
+

Modified: trunk/libs/config/doc/macro_reference.qbk
==============================================================================
--- trunk/libs/config/doc/macro_reference.qbk (original)
+++ trunk/libs/config/doc/macro_reference.qbk 2010-05-18 13:55:32 EDT (Tue, 18 May 2010)
@@ -835,6 +835,9 @@
 Defined if the compiler is an Intel compiler, takes the same value as the
 compiler version macro.
 ]]
+[[`BOOST_CLANG`][`<boost/config.hpp>`][
+Defined to 1 if the compiler is the Clang compiler.
+]]
 [[`BOOST_WINDOWS`][`<boost/config.hpp>`][
 Defined if the Windows platfrom API is available.
 ]]


Boost-Commit list run by bdawes at acm.org, david.abrahams at rcn.com, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk