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:
1 parent
68470ca33e
commit
9fcecba7cc
89 files changed
+857
-403
No files matched your search
@@ -26,7 +26,7 @@ If available, the year of the standard is detected as YYYY.MM.1 from the Epoc da
|
||||
]
|
||||
*/
|
||||
|
||||
#define BOOST_LANG_STDC BOOST_VERSION_NUMBER(0,0,0)
|
||||
#define BOOST_LANG_STDC BOOST_VERSION_NUMBER_NOT_AVAILABLE
|
||||
|
||||
#if defined(__STDC__)
|
||||
# undef BOOST_LANG_STDC
|
||||
@@ -34,13 +34,17 @@ If available, the year of the standard is detected as YYYY.MM.1 from the Epoc da
|
||||
# if (__STDC_VERSION__ > 100)
|
||||
# define BOOST_LANG_STDC BOOST_PREDEF_MAKE_YYYYMM(__STDC_VERSION__)
|
||||
# else
|
||||
# define BOOST_LANG_STDC BOOST_VERSION_NUMBER(0,0,1)
|
||||
# define BOOST_LANG_STDC BOOST_VERSION_NUMBER_AVAILABLE
|
||||
# endif
|
||||
# else
|
||||
# define BOOST_LANG_STDC BOOST_VERSION_NUMBER(0,0,1)
|
||||
# define BOOST_LANG_STDC BOOST_VERSION_NUMBER_AVAILABLE
|
||||
# endif
|
||||
#endif
|
||||
|
||||
#if BOOST_LANG_STDC
|
||||
# define BOOST_LANG_STDC_AVAILABLE
|
||||
#endif
|
||||
|
||||
#define BOOST_LANG_STDC_NAME "Standard C"
|
||||
|
||||
#include <boost/predef/detail/test.h>
|
||||
|
||||
Reference in new issue
Block a user