diff --git a/include/boost/regex/config.hpp b/include/boost/regex/config.hpp index 5cdaedf9..806ead59 100644 --- a/include/boost/regex/config.hpp +++ b/include/boost/regex/config.hpp @@ -114,7 +114,7 @@ // If Win32 support has been disabled for boost in general, then // it is for regex in particular: // -#ifdef BOOST_DISABLE_WIN32 +#if defined(BOOST_DISABLE_WIN32) && !defined(BOOST_REGEX_NO_W32) # define BOOST_REGEX_NO_W32 #endif