diff --git a/src/usinstances.cpp b/src/usinstances.cpp index 3f9cc2f0..56653662 100644 --- a/src/usinstances.cpp +++ b/src/usinstances.cpp @@ -22,7 +22,7 @@ #include #include -#if defined(_DLL_CPPLIB) && !defined(_M_CEE_PURE) \ +#if defined(_DLL_CPPLIB) && !defined(_M_CEE_PURE) && defined(_NATIVE_WCHAR_T_DEFINED) \ && !(defined(__SGI_STL_PORT) || defined(_STLPORT_VERSION) || defined(__STD_RWCOMPILER_H__) || defined(_RWSTD_VER)) // // This is a horrible workaround, but without declaring these symbols extern we get diff --git a/src/wc_regex_traits.cpp b/src/wc_regex_traits.cpp index d8038d1b..3640f292 100644 --- a/src/wc_regex_traits.cpp +++ b/src/wc_regex_traits.cpp @@ -23,7 +23,7 @@ #include #include -#if defined(_DLL_CPPLIB) && !defined(_M_CEE_PURE) \ +#if defined(_DLL_CPPLIB) && !defined(_M_CEE_PURE) && defined(_NATIVE_WCHAR_T_DEFINED) \ && !(defined(__SGI_STL_PORT) || defined(_STLPORT_VERSION) || defined(__STD_RWCOMPILER_H__) || defined(_RWSTD_VER)) // // This is a horrible workaround, but without declaring these symbols extern we get