From f25014668821de0c043779116438ab79d6171ac7 Mon Sep 17 00:00:00 2001 From: John Maddock Date: Sat, 10 Nov 2007 17:40:19 +0000 Subject: [PATCH] Fix issue #1424. [SVN r40997] --- test/promote_enum_test.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/test/promote_enum_test.cpp b/test/promote_enum_test.cpp index 60b087e..58a103c 100755 --- a/test/promote_enum_test.cpp +++ b/test/promote_enum_test.cpp @@ -29,6 +29,7 @@ #include #include "promote_util.hpp" +#include enum IntEnum1 { IntEnum1_min = -5 , IntEnum1_max = 5 }; enum IntEnum2 { IntEnum2_min = SHRT_MIN, IntEnum2_max = SHRT_MAX }; @@ -90,8 +91,8 @@ void test_promote_to_int_or_uint() #endif } -#if (defined(BOOST_MSVC) && BOOST_MSVC <= 1400 ) || \ - (defined(BOOST_INTEL_WIN) && BOOST_INTEL_WIN <= 1000) +#if BOOST_WORKAROUND(BOOST_MSVC, BOOST_TESTED_AT(1500) ) || \ + BOOST_WORKAROUND(BOOST_INTEL_WIN, BOOST_TESTED_AT(1000)) // Don't test UIntEnum on VC++ 8.0 and Intel for Windows 9.0, // they are broken. More info is on top of this file. #else