diff --git a/test/is_polymorphic_test.cpp b/test/is_polymorphic_test.cpp index da1abe3..dffdc1f 100644 --- a/test/is_polymorphic_test.cpp +++ b/test/is_polymorphic_test.cpp @@ -11,7 +11,7 @@ #include #include -#if defined(_WINDOWS) || defined(_WIN32) || defined(_WIN64) +#if (defined(_WINDOWS) || defined(_WIN32) || defined(_WIN64)) && !defined(BOOST_DISABLE_WIN32) #include // more things to test #endif @@ -59,7 +59,7 @@ BOOST_CHECK_INTEGRAL_CONSTANT(::tt::is_polymorphic::value, t BOOST_CHECK_INTEGRAL_CONSTANT(::tt::is_polymorphic::value, true); BOOST_CHECK_INTEGRAL_CONSTANT(::tt::is_polymorphic::value, true); -#if defined(_WINDOWS) || defined(_WIN32) || defined(_WIN64) +#if (defined(_WINDOWS) || defined(_WIN32) || defined(_WIN64)) && !defined(BOOST_DISABLE_WIN32) BOOST_CHECK_INTEGRAL_CONSTANT(::tt::is_polymorphic::value, true); BOOST_CHECK_INTEGRAL_CONSTANT(::tt::is_polymorphic::value, true); BOOST_CHECK_INTEGRAL_CONSTANT(::tt::is_polymorphic::value, true);