Skip to content

Commit bcfd9f8

Browse files
committed
[libc++] Fix stray usage of _LIBCPP_HAS_NO_WIDE_CHARACTERS on Windows
1 parent c7995a6 commit bcfd9f8

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

libcxx/include/__locale_dir/support/windows.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -215,7 +215,7 @@ inline _LIBCPP_HIDE_FROM_ABI size_t __strxfrm(char* __dest, const char* __src, s
215215
return ::_strxfrm_l(__dest, __src, __n, __loc);
216216
}
217217

218-
#ifndef _LIBCPP_HAS_NO_WIDE_CHARACTERS
218+
#if _LIBCPP_HAS_WIDE_CHARACTERS
219219
inline _LIBCPP_HIDE_FROM_ABI int __iswctype(wint_t __c, wctype_t __type, __locale_t __loc) {
220220
return ::_iswctype_l(__c, __type, __loc);
221221
}
@@ -240,7 +240,7 @@ inline _LIBCPP_HIDE_FROM_ABI int __wcscoll(const wchar_t* __ws1, const wchar_t*
240240
inline _LIBCPP_HIDE_FROM_ABI size_t __wcsxfrm(wchar_t* __dest, const wchar_t* __src, size_t __n, __locale_t __loc) {
241241
return ::_wcsxfrm_l(__dest, __src, __n, __loc);
242242
}
243-
#endif // !_LIBCPP_HAS_NO_WIDE_CHARACTERS
243+
#endif // _LIBCPP_HAS_WIDE_CHARACTERS
244244

245245
#if defined(__MINGW32__) && __MSVCRT_VERSION__ < 0x0800
246246
_LIBCPP_EXPORTED_FROM_ABI size_t __strftime(char*, size_t, const char*, const struct tm*, __locale_t);

0 commit comments

Comments
 (0)