forked from boostorg/predef
Most changes from review comments implemented. Remove use of "#elif" for
backward PP compatability. Add BOOST_category_item_AVAILABLE as a defined, or not, symbol for use with "#ifdef" or "#ifndef". Add documentation of macros used for detection and version information. Also replace direct use of BVN(0,0,0) and BVN(0,0,1) with more meaningful macros that are globally defined, and hence consistent.
This commit is contained in:
@ -26,13 +26,17 @@ Version number available as major, minor, and patch.
|
||||
]
|
||||
*/
|
||||
|
||||
#define BOOST_COMP_CLANG BOOST_VERSION_NUMBER(0,0,0)
|
||||
#define BOOST_COMP_CLANG BOOST_VERSION_NUMBER_NOT_AVAILABLE
|
||||
|
||||
#if defined(__clang__)
|
||||
# undef BOOST_COMP_CLANG
|
||||
# define BOOST_COMP_CLANG BOOST_VERSION_NUMBER(__clang_major__,__clang_minor__,__clang_patchlevel__)
|
||||
#endif
|
||||
|
||||
#if BOOST_COMP_CLANG
|
||||
# define BOOST_COMP_CLANG_AVAILABLE
|
||||
#endif
|
||||
|
||||
#define BOOST_COMP_CLANG_NAME "Clang"
|
||||
|
||||
#include <boost/predef/detail/test.h>
|
||||
|
Reference in New Issue
Block a user