From 873f5745a66ec249177267ab5d73e21928dbf4be Mon Sep 17 00:00:00 2001 From: Beman Dawes Date: Fri, 12 Jul 2002 21:41:55 +0000 Subject: [PATCH] Improve BOOST_COMPILER [SVN r14430] --- include/boost/config/compiler/metrowerks.hpp | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/include/boost/config/compiler/metrowerks.hpp b/include/boost/config/compiler/metrowerks.hpp index 8b8b324e..43f35008 100644 --- a/include/boost/config/compiler/metrowerks.hpp +++ b/include/boost/config/compiler/metrowerks.hpp @@ -32,8 +32,15 @@ # define BOOST_NO_INTRINSIC_WCHAR_T #endif +# if __MWERKS__ == 0x3000 +# define BOOST_COMPILER_VERSION 8.0 +# elif __MWERKS__ == 0x3001 +# define BOOST_COMPILER_VERSION 8.1 +# else +# define BOOST_COMPILER_VERSION __MWERKS__ +# endif -#define BOOST_COMPILER "Metrowerks CodeWarrior C++ version " BOOST_STRINGIZE(__MWERKS__) +#define BOOST_COMPILER "Metrowerks CodeWarrior C++ version " BOOST_STRINGIZE(BOOST_COMPILER_VERSION) // // versions check: