summaryrefslogtreecommitdiff
path: root/src/libc/stdint.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/libc/stdint.h')
-rw-r--r--src/libc/stdint.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/libc/stdint.h b/src/libc/stdint.h
index e0f35b6..23dc370 100644
--- a/src/libc/stdint.h
+++ b/src/libc/stdint.h
@@ -10,6 +10,10 @@ typedef unsigned short uint16_t;
typedef signed short int16_t;
typedef unsigned char uint8_t;
typedef signed char int8_t;
+typedef uint32_t uintptr_t;
+#else
+// gcc and clang provide a stdint.h
+#include_next <stdint.h>
#endif
#endif // STDINT_H