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:
Rene Rivera
2013-01-18 21:25:30 -06:00
parent 68470ca33e
commit 9fcecba7cc
89 changed files with 857 additions and 403 deletions

View File

@ -27,19 +27,24 @@ Version number available as major, minor, and patch (if available).
]
*/
#define BOOST_COMP_GNUC BOOST_VERSION_NUMBER(0,0,0)
#define BOOST_COMP_GNUC BOOST_VERSION_NUMBER_NOT_AVAILABLE
#if defined(__GNUC__)
# undef BOOST_COMP_GNUC
# if defined(__GNUC_PATCHLEVEL__)
# if !defined(BOOST_COMP_GNUC) && defined(__GNUC_PATCHLEVEL__)
# define BOOST_COMP_GNUC \
BOOST_VERSION_NUMBER(__GNUC__,__GNUC_MINOR__,__GNUC_PATCHLEVEL__)
# else
# endif
# if !defined(BOOST_COMP_GNUC)
# define BOOST_COMP_GNUC \
BOOST_VERSION_NUMBER(__GNUC__,__GNUC_MINOR__,0)
# endif
#endif
#if BOOST_COMP_GNUC
# define BOOST_COMP_GNUC_AVAILABLE
#endif
#define BOOST_COMP_GNUC_NAME "Gnu GCC C/C++"
#include <boost/predef/detail/test.h>