mirror of
https://github.com/RGBCube/serenity
synced 2025-07-27 06:37:44 +00:00
LibC: Define WCHAR_{MIN,MAX}
This commit is contained in:
parent
687a3351c2
commit
0fdf52f6dd
1 changed files with 10 additions and 0 deletions
|
@ -17,6 +17,16 @@ __BEGIN_DECLS
|
||||||
# define WEOF (0xffffffffu)
|
# define WEOF (0xffffffffu)
|
||||||
#endif
|
#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 __WINT_TYPE__ wint_t;
|
||||||
typedef unsigned long int wctype_t;
|
typedef unsigned long int wctype_t;
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue