diff options
| author | Tharo <17233964+Thar0@users.noreply.github.com> | 2023-10-17 20:16:31 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2023-10-17 21:16:31 +0200 |
| commit | a20163c6abf7700c432c711b03532cc4ad8d198a (patch) | |
| tree | df1d59b95bc42d14acd8c42c3557f0197be83799 /include/libc | |
| parent | b3486b57ef41a284a366eb40ca07bf82bf4750d6 (diff) | |
Use `long` over `int` for s32/u32 types (#1546)
* long s32
* Suggested changes
Diffstat (limited to 'include/libc')
| -rw-r--r-- | include/libc/stddef.h | 4 | ||||
| -rw-r--r-- | include/libc/stdint.h | 4 |
2 files changed, 6 insertions, 2 deletions
diff --git a/include/libc/stddef.h b/include/libc/stddef.h index d277a2603..5d4f666b4 100644 --- a/include/libc/stddef.h +++ b/include/libc/stddef.h @@ -3,7 +3,11 @@ #define NULL ((void*)0) +#if defined(_MIPS_SZLONG) && (_MIPS_SZLONG == 64) typedef unsigned long size_t; +#else +typedef unsigned int size_t; +#endif #ifdef __GNUC__ #define offsetof(structure, member) __builtin_offsetof (structure, member) diff --git a/include/libc/stdint.h b/include/libc/stdint.h index 6d8777439..3c430822e 100644 --- a/include/libc/stdint.h +++ b/include/libc/stdint.h @@ -1,8 +1,8 @@ #ifndef STDINT_H #define STDINT_H -typedef signed int intptr_t; -typedef unsigned int uintptr_t; +typedef signed long intptr_t; +typedef unsigned long uintptr_t; #define INT8_MIN (-0x80) #define INT16_MIN (-0x8000) |
