diff options
author | Nikolas Klauser <nikolasklauser@berlin.de> | 2024-11-06 10:39:19 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-11-06 10:39:19 +0100 |
commit | c6f3b7bcd0596d30f8dabecdfb9e44f9a07b6e4c (patch) | |
tree | dbfd623fea1771448ff564d5fc4221db7fca2f84 /libcxx/src/std_stream.h | |
parent | 5acc4a3dc0e2145d2bfef47f1543bb291c2b866a (diff) | |
download | llvm-c6f3b7bcd0596d30f8dabecdfb9e44f9a07b6e4c.zip llvm-c6f3b7bcd0596d30f8dabecdfb9e44f9a07b6e4c.tar.gz llvm-c6f3b7bcd0596d30f8dabecdfb9e44f9a07b6e4c.tar.bz2 |
[libc++] Refactor the configuration macros to being always defined (#112094)
This is a follow-up to #89178. This updates the `<__config_site>`
macros.
Diffstat (limited to 'libcxx/src/std_stream.h')
-rw-r--r-- | libcxx/src/std_stream.h | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/libcxx/src/std_stream.h b/libcxx/src/std_stream.h index e55cd0b..1bbaee6 100644 --- a/libcxx/src/std_stream.h +++ b/libcxx/src/std_stream.h @@ -106,7 +106,7 @@ inline bool __do_getc(FILE* __fp, char* __pbuf) { *__pbuf = static_cast<char>(__c); return true; } -#ifndef _LIBCPP_HAS_NO_WIDE_CHARACTERS +#if _LIBCPP_HAS_WIDE_CHARACTERS inline bool __do_getc(FILE* __fp, wchar_t* __pbuf) { wint_t __c = getwc(__fp); if (__c == WEOF) @@ -121,7 +121,7 @@ inline bool __do_ungetc(int __c, FILE* __fp, char __dummy) { return false; return true; } -#ifndef _LIBCPP_HAS_NO_WIDE_CHARACTERS +#if _LIBCPP_HAS_WIDE_CHARACTERS inline bool __do_ungetc(std::wint_t __c, FILE* __fp, wchar_t __dummy) { if (ungetwc(__c, __fp) == WEOF) return false; @@ -293,7 +293,7 @@ inline bool __do_fputc(char __c, FILE* __fp) { return false; return true; } -#ifndef _LIBCPP_HAS_NO_WIDE_CHARACTERS +#if _LIBCPP_HAS_WIDE_CHARACTERS inline bool __do_fputc(wchar_t __c, FILE* __fp) { // fputwc works regardless of wide/narrow mode of stdout, while // fwrite of wchar_t only works if the stream actually has been set |