Index: perl_matcher.hpp =================================================================== --- perl_matcher.hpp (revision 58325) +++ perl_matcher.hpp (working copy) @@ -61,7 +61,7 @@ { return ((c >= (1 << CHAR_BIT)) ? true : map[c] & mask); } -#if !defined(__hpux) // WCHAR_MIN not usable in pp-directives. +#if !defined(__hpux) && !defined(__WINSCW__) // WCHAR_MIN not usable in pp-directives. #if defined(WCHAR_MIN) && (WCHAR_MIN == 0) && !defined(BOOST_NO_INTRINSIC_WCHAR_T) inline bool can_start(wchar_t c, const unsigned char* map, unsigned char mask) { Index: regex_traits_defaults.hpp =================================================================== --- regex_traits_defaults.hpp (revision 58325) +++ regex_traits_defaults.hpp (working copy) @@ -84,7 +84,7 @@ { return false; } -#ifndef __hpux // can't use WCHAR_MAX/MIN in pp-directives +#if !defined(__hpux) && !defined(__WINSCW__) // can't use WCHAR_MAX/MIN in pp-directives #ifdef _MSC_VER template<> inline bool is_combining(wchar_t c)