mirror of
https://github.com/RGBCube/serenity
synced 2025-07-26 07:27:45 +00:00
LibC: Make WEOF a signed value on clang
The actual value is unchanged, but the previous `0xffffffff` was an unsigned value, which lead to clang getting mad at `foowc() == WEOF`. This commit makes it a signed int on clang, which *should* serve the same purpose and not lead to clang getting mad at us.
This commit is contained in:
parent
0d7d2b825e
commit
ccb9cae8e9
1 changed files with 6 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue