1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-27 22:27:35 +00:00

LibC: Define WCHAR_{MIN,MAX}

This commit is contained in:
Ali Mohammad Pur 2021-12-20 01:22:01 +03:30 committed by Ali Mohammad Pur
parent 687a3351c2
commit 0fdf52f6dd

View file

@ -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;