diff --git a/src/cpp_regex_traits.cpp b/src/cpp_regex_traits.cpp index 89ae5d03..7bd7bf09 100644 --- a/src/cpp_regex_traits.cpp +++ b/src/cpp_regex_traits.cpp @@ -21,7 +21,7 @@ #include -#if defined(BOOST_MSVC) && (BOOST_MSVC >= 1300) && !defined(_NATIVE_WCHAR_T_DEFINED) +#if defined(BOOST_REGEX_HAS_SHORT_WCHAR_T) && !defined(_NATIVE_WCHAR_T_DEFINED) # pragma message ("disabling support for class cpp_regex_traits - rebuild with /Zc:wchar_t if you really need this") # define BOOST_NO_WREGEX #endif