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

Kernel+AK: Add/fix uintptr_t and intptr_t definitions

We should move towards using uintptr_t instead of u32 for pointers
everywhere, to prepare for an eventual 64-bit port.
This commit is contained in:
Andreas Kling 2020-01-20 13:05:55 +01:00
parent 68d5b39942
commit e07b34b9b8
2 changed files with 5 additions and 2 deletions

View file

@ -56,6 +56,9 @@ static_assert(sizeof(ssize_t) == sizeof(i32));
typedef __PTRDIFF_TYPE__ ptrdiff_t;
typedef __INTPTR_TYPE__ intptr_t;
typedef __UINTPTR_TYPE__ uintptr_t;
typedef u8 uint8_t;
typedef u16 uint16_t;
typedef u32 uint32_t;