diff --git a/test/detail_is_range_test2.cpp b/test/detail_is_range_test2.cpp index f4bae9b..b1cf8b2 100644 --- a/test/detail_is_range_test2.cpp +++ b/test/detail_is_range_test2.cpp @@ -14,7 +14,8 @@ #include #include #include -#if !defined(BOOST_NO_CXX17_HDR_FILESYSTEM) + +#if !defined(BOOST_NO_CXX17_HDR_FILESYSTEM) && !defined(__MINGW32__) # include #endif @@ -25,9 +26,11 @@ int main() BOOST_TEST_TRAIT_FALSE((is_range< boost::filesystem::path >)); BOOST_TEST_TRAIT_FALSE((is_range< boost::filesystem::path const >)); -#if !defined(BOOST_NO_CXX17_HDR_FILESYSTEM) +#if !defined(BOOST_NO_CXX17_HDR_FILESYSTEM) && !defined(__MINGW32__) + BOOST_TEST_TRAIT_FALSE((is_range< std::filesystem::path >)); BOOST_TEST_TRAIT_FALSE((is_range< std::filesystem::path const >)); + #endif return boost::report_errors();