diff options
-rw-r--r-- | Userland/Libraries/LibC/wchar.h | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/Userland/Libraries/LibC/wchar.h b/Userland/Libraries/LibC/wchar.h index 17f0af3209..09119d1ba7 100644 --- a/Userland/Libraries/LibC/wchar.h +++ b/Userland/Libraries/LibC/wchar.h @@ -13,8 +13,13 @@ __BEGIN_DECLS +// Note: wint_t is unsigned on gcc, and signed on clang. #ifndef WEOF -# define WEOF (0xffffffffu) +# ifdef __clang__ +# define WEOF (-1) +# else +# define WEOF (0xffffffffu) +# endif #endif #undef WCHAR_MAX |