mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2024-11-26 01:20:25 +00:00
LibC: Fix incorrect limit for SSIZE_MAX and remove 32 bit definitions
The file `limits.h` had definitions for x86. This PR removes these definitions and fixes the upper limit for the type ssize_t which was defined to be 0x7fffffff.
This commit is contained in:
parent
bb4c7b6a35
commit
4a816ed891
Notes:
sideshowbarker
2024-07-17 03:03:15 +09:00
Author: https://github.com/agustingianni Commit: https://github.com/SerenityOS/serenity/commit/4a816ed891 Pull-request: https://github.com/SerenityOS/serenity/pull/17019
1 changed files with 3 additions and 11 deletions
|
@ -44,18 +44,10 @@
|
|||
|
||||
#define USHRT_MAX 65535
|
||||
|
||||
#ifdef __x86_64__
|
||||
# define LONG_MAX 9223372036854775807L
|
||||
#else
|
||||
# define LONG_MAX 2147483647L
|
||||
#endif
|
||||
#define LONG_MAX 9223372036854775807L
|
||||
#define LONG_MIN (-LONG_MAX - 1L)
|
||||
|
||||
#ifdef __x86_64__
|
||||
# define ULONG_MAX 18446744073709551615UL
|
||||
#else
|
||||
# define ULONG_MAX 4294967295UL
|
||||
#endif
|
||||
#define ULONG_MAX 18446744073709551615UL
|
||||
|
||||
#define LONG_LONG_MAX 9223372036854775807LL
|
||||
#define LONG_LONG_MIN (-LONG_LONG_MAX - 1LL)
|
||||
|
@ -87,7 +79,7 @@
|
|||
|
||||
#define ARG_MAX 65536
|
||||
|
||||
#define SSIZE_MAX 2147483647
|
||||
#define SSIZE_MAX LONG_MAX
|
||||
|
||||
#define LINK_MAX 4096
|
||||
|
||||
|
|
Loading…
Reference in a new issue