mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-06-11 02:13:56 +09:00
LibC: Define WCHAR_{MIN,MAX}
This commit is contained in:
parent
687a3351c2
commit
0fdf52f6dd
Notes:
sideshowbarker
2024-07-17 22:29:01 +09:00
Author: https://github.com/alimpfard
Commit: 0fdf52f6dd
Pull-request: https://github.com/SerenityOS/serenity/pull/11324
Reviewed-by: https://github.com/BertalanD
1 changed files with 10 additions and 0 deletions
|
@ -17,6 +17,16 @@ __BEGIN_DECLS
|
|||
# define WEOF (0xffffffffu)
|
||||
#endif
|
||||
|
||||
#undef WCHAR_MAX
|
||||
#undef WCHAR_MIN
|
||||
#define WCHAR_MAX __WCHAR_MAX__
|
||||
#ifdef __WCHAR_MIN__
|
||||
# define WCHAR_MIN __WCHAR_MIN__
|
||||
#else
|
||||
// Note: This assumes that wchar_t is a signed type.
|
||||
# define WCHAR_MIN (-WCHAR_MAX - 1)
|
||||
#endif
|
||||
|
||||
typedef __WINT_TYPE__ wint_t;
|
||||
typedef unsigned long int wctype_t;
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue