[libc++] Fix stray usage of _LIBCPP_HAS_NO_WIDE_CHARACTERS on Windows · llvm/llvm-project@af9d7dd (original) (raw)

Original file line number Diff line number Diff line change
@@ -215,7 +215,7 @@ inline _LIBCPP_HIDE_FROM_ABI size_t __strxfrm(char* __dest, const char* __src, s
215 215 return ::_strxfrm_l(__dest, __src, __n, __loc);
216 216 }
217 217
218 -#ifndef _LIBCPP_HAS_NO_WIDE_CHARACTERS
218 +#if _LIBCPP_HAS_WIDE_CHARACTERS
219 219 inline _LIBCPP_HIDE_FROM_ABI int __iswctype(wint_t __c, wctype_t __type, __locale_t __loc) {
220 220 return ::_iswctype_l(__c, __type, __loc);
221 221 }
@@ -240,7 +240,7 @@ inline _LIBCPP_HIDE_FROM_ABI int __wcscoll(const wchar_t* __ws1, const wchar_t*
240 240 inline _LIBCPP_HIDE_FROM_ABI size_t __wcsxfrm(wchar_t* __dest, const wchar_t* __src, size_t __n, __locale_t __loc) {
241 241 return ::_wcsxfrm_l(__dest, __src, __n, __loc);
242 242 }
243 -#endif // !_LIBCPP_HAS_NO_WIDE_CHARACTERS
243 +#endif // _LIBCPP_HAS_WIDE_CHARACTERS
244 244
245 245 #if defined(__MINGW32__) && __MSVCRT_VERSION__ < 0x0800
246 246 _LIBCPP_EXPORTED_FROM_ABI size_t __strftime(char*, size_t, const char*, const struct tm*, __locale_t);