mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-09-11 12:06:07 +00:00
LibC: A bunch of compat work towards porting GCC.
This commit is contained in:
parent
9fd4f4862b
commit
93c0dfd1d7
Notes:
sideshowbarker
2024-07-19 15:38:12 +09:00
Author: https://github.com/awesomekling
Commit: 93c0dfd1d7
18 changed files with 166 additions and 13 deletions
|
@ -14,7 +14,28 @@ typedef signed int int32_t;
|
|||
typedef signed short int16_t;
|
||||
typedef signed char int8_t;
|
||||
|
||||
typedef uint32_t uintptr_t;
|
||||
#define __int8_t_defined 1
|
||||
#define __uint8_t_defined 1
|
||||
#define __int16_t_defined 1
|
||||
#define __uint16_t_defined 1
|
||||
#define __int32_t_defined 1
|
||||
#define __uint32_t_defined 1
|
||||
#define __int64_t_defined 1
|
||||
#define __uint64_t_defined 1
|
||||
|
||||
typedef __PTRDIFF_TYPE__ uintptr_t;
|
||||
typedef __PTRDIFF_TYPE__ intptr_t;
|
||||
#define INTPTR_MAX PTRDIFF_MAX
|
||||
#define INTPTR_MIN PTRDIFF_MIN
|
||||
#define UINTPTR_MAX __UINTPTR_MAX__
|
||||
|
||||
typedef __UINTMAX_TYPE__ uintmax_t;
|
||||
#define UINTMAX_MAX __UINTMAX_MAX__
|
||||
#define UINTMAX_MIN __UINTMAX_MIN__
|
||||
|
||||
typedef __INTMAX_TYPE__ intmax_t;
|
||||
#define INTMAX_MAX __INTMAX_MAX__
|
||||
#define INTMAX_MIN (-INTMAX_MAX - 1)
|
||||
|
||||
#define INT8_MIN (-128)
|
||||
#define INT16_MIN (-32767-1)
|
||||
|
@ -26,5 +47,8 @@ typedef uint32_t uintptr_t;
|
|||
#define UINT16_MAX (65535)
|
||||
#define UINT32_MAX (4294967295U)
|
||||
|
||||
#define INT64_C(x) x##LL
|
||||
#define UINT64_C(x) x##ULL
|
||||
|
||||
__END_DECLS
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue