From 56c052de56ddd864742e67b325f7ab9fca0437f2 Mon Sep 17 00:00:00 2001 From: Beman Dawes Date: Tue, 23 Jul 2002 19:47:15 +0000 Subject: [PATCH] Better version identification [SVN r14576] --- include/boost/config/compiler/visualc.hpp | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/include/boost/config/compiler/visualc.hpp b/include/boost/config/compiler/visualc.hpp index cb656f93..8aeb1e18 100644 --- a/include/boost/config/compiler/visualc.hpp +++ b/include/boost/config/compiler/visualc.hpp @@ -79,9 +79,15 @@ # define BOOST_DISABLE_WIN32 #endif +# if _MSC_VER == 1200 +# define BOOST_COMPILER_VERSION 6.0 +# elif _MSC_VER == 1300 +# define BOOST_COMPILER_VERSION 7.0 +# else +# define BOOST_COMPILER_VERSION _MSC_VER +# endif - -#define BOOST_COMPILER "Microsoft Visual C++ version " BOOST_STRINGIZE(_MSC_VER) +#define BOOST_COMPILER "Microsoft Visual C++ version " BOOST_STRINGIZE(BOOST_COMPILER_VERSION) // // versions check: