mirror of
https://github.com/boostorg/predef.git
synced 2025-07-30 03:47:14 +02:00
Account for skip in Visual Studio product version vs. compiler version
to map compiler version to product version.
This commit is contained in:
@ -48,10 +48,23 @@ Version number available as major, minor, and patch.
|
|||||||
# error "Cannot determine build number from _MSC_FULL_VER"
|
# error "Cannot determine build number from _MSC_FULL_VER"
|
||||||
# endif
|
# endif
|
||||||
# endif
|
# endif
|
||||||
# define BOOST_COMP_MSVC_DETECTION BOOST_VERSION_NUMBER(\
|
/*
|
||||||
_MSC_VER/100-6,\
|
VS2014 was skipped in the release sequence for MS. Which
|
||||||
_MSC_VER%100,\
|
means that the compiler and VS product versions are no longer
|
||||||
BOOST_COMP_MSVC_BUILD)
|
in sync. Hence we need to use different formulas for
|
||||||
|
mapping from MSC version to VS product version.
|
||||||
|
*/
|
||||||
|
# if (_MSC_VER >= 19)
|
||||||
|
# define BOOST_COMP_MSVC_DETECTION BOOST_VERSION_NUMBER(\
|
||||||
|
_MSC_VER/100-5,\
|
||||||
|
_MSC_VER%100,\
|
||||||
|
BOOST_COMP_MSVC_BUILD)
|
||||||
|
# else
|
||||||
|
# define BOOST_COMP_MSVC_DETECTION BOOST_VERSION_NUMBER(\
|
||||||
|
_MSC_VER/100-6,\
|
||||||
|
_MSC_VER%100,\
|
||||||
|
BOOST_COMP_MSVC_BUILD)
|
||||||
|
# endif
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#ifdef BOOST_COMP_MSVC_DETECTION
|
#ifdef BOOST_COMP_MSVC_DETECTION
|
||||||
|
Reference in New Issue
Block a user