aboutsummaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorMatthias Gatto <uso.cosmo.ray@gmail.com>2017-07-24 11:52:15 +0200
committerMatthias Gatto <uso.cosmo.ray@gmail.com>2017-07-24 11:52:15 +0200
commitb72cddaa6e3a69dc4480ea128566215cd537a6e2 (patch)
treeebb55f9ff23ad31a0a336cec2978b6a7d8f8d38a /include
parent4b3c6e74aba07d61e91b2e0ba7190483a0f9f000 (diff)
downloadtinycc-b72cddaa6e3a69dc4480ea128566215cd537a6e2.tar.gz
tinycc-b72cddaa6e3a69dc4480ea128566215cd537a6e2.tar.bz2
remove inside_generic hack
define uint64_t and int64_t as 'long' instead of 'long long' when __LP64__ is define.
Diffstat (limited to 'include')
-rw-r--r--include/stddef.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/include/stddef.h b/include/stddef.h
index 791ba31..694d503 100644
--- a/include/stddef.h
+++ b/include/stddef.h
@@ -13,12 +13,20 @@ typedef __SIZE_TYPE__ uintptr_t;
typedef signed char int8_t;
typedef signed short int int16_t;
typedef signed int int32_t;
+#ifdef __LP64__
+typedef signed long int int64_t;
+#else
typedef signed long long int int64_t;
+#endif
typedef unsigned char uint8_t;
typedef unsigned short int uint16_t;
typedef unsigned int uint32_t;
+#ifdef __LP64__
+typedef unsigned long int uint64_t;
+#else
typedef unsigned long long int uint64_t;
#endif
+#endif
#ifndef NULL
#define NULL ((void*)0)