Add a BOOST_CLANG macro to indicate when Clang is used.

[SVN r62089]
This commit is contained in:
Douglas Gregor
2010-05-18 17:55:32 +00:00
parent a134372b3e
commit f19e192f68
2 changed files with 7 additions and 0 deletions

View File

@ -835,6 +835,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`][`<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.
]]

View File

@ -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