summaryrefslogtreecommitdiff
path: root/Libraries
diff options
context:
space:
mode:
authorAndreas Kling <kling@serenityos.org>2020-01-20 13:05:55 +0100
committerAndreas Kling <kling@serenityos.org>2020-01-20 13:13:03 +0100
commite07b34b9b839395da7e9f11de8faf85c74888291 (patch)
tree1ff96653026c365356103fc954b673b6226e39a4 /Libraries
parent68d5b399429738a8b39dd242fa228c7077052bbb (diff)
downloadserenity-e07b34b9b839395da7e9f11de8faf85c74888291.zip
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.
Diffstat (limited to 'Libraries')
-rw-r--r--Libraries/LibC/bits/stdint.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/Libraries/LibC/bits/stdint.h b/Libraries/LibC/bits/stdint.h
index 54be84a3e7..7c07ea72a3 100644
--- a/Libraries/LibC/bits/stdint.h
+++ b/Libraries/LibC/bits/stdint.h
@@ -69,8 +69,8 @@ typedef __INT_LEAST64_TYPE__ int_least64_t;
#define __int64_t_defined 1
#define __uint64_t_defined 1
-typedef __PTRDIFF_TYPE__ uintptr_t;
-typedef __PTRDIFF_TYPE__ intptr_t;
+typedef __UINTPTR_TYPE__ uintptr_t;
+typedef __INTPTR_TYPE__ intptr_t;
typedef __UINTMAX_TYPE__ uintmax_t;
#define UINTMAX_MAX __UINTMAX_MAX__