From 4ce3e43a4ec93b15b2e7ac1b8075632655d883f5 Mon Sep 17 00:00:00 2001 From: Douglas Gregor Date: Tue, 18 May 2010 18:13:10 +0000 Subject: [PATCH] Merge BOOST_CLANG from trunk r62089. [SVN r62090] --- doc/macro_reference.qbk | 3 +++ include/boost/config/compiler/clang.hpp | 4 ++++ 2 files changed, 7 insertions(+) diff --git a/doc/macro_reference.qbk b/doc/macro_reference.qbk index 3a96512e..c32ea618 100644 --- a/doc/macro_reference.qbk +++ b/doc/macro_reference.qbk @@ -831,6 +831,9 @@ PPPPP is the compiler build number. Defined if the compiler is an Intel compiler, takes the same value as the compiler version macro. ]] +[[`BOOST_CLANG`][``][ +Defined to 1 if the compiler is the Clang compiler. +]] [[`BOOST_WINDOWS`][``][ Defined if the Windows platfrom API is available. ]] diff --git a/include/boost/config/compiler/clang.hpp b/include/boost/config/compiler/clang.hpp index 2375d6eb..90cc6aa6 100644 --- a/include/boost/config/compiler/clang.hpp +++ b/include/boost/config/compiler/clang.hpp @@ -62,3 +62,7 @@ #ifndef BOOST_COMPILER # define BOOST_COMPILER "Clang version " __clang_version__ #endif + +// Macro used to identify the Clang compiler. +#define BOOST_CLANG 1 +