aboutsummaryrefslogtreecommitdiffstats
path: root/main/xen/stdint_local.h
diff options
context:
space:
mode:
authorNatanael Copa <ncopa@alpinelinux.org>2017-04-12 19:25:51 +0000
committerNatanael Copa <ncopa@alpinelinux.org>2017-04-12 19:31:02 +0000
commit96ef9d09cc1b5e136ef0222437e98dd468dc462a (patch)
treea67e8157682187cbe03f3cd48096c88525bd4f34 /main/xen/stdint_local.h
parent5615dffc780b32fd5a43d002887e47e00636ca47 (diff)
downloadaports-96ef9d09cc1b5e136ef0222437e98dd468dc462a.tar.bz2
aports-96ef9d09cc1b5e136ef0222437e98dd468dc462a.tar.xz
main/xen: upgrade to 4.8.1
Diffstat (limited to 'main/xen/stdint_local.h')
-rw-r--r--main/xen/stdint_local.h28
1 files changed, 12 insertions, 16 deletions
diff --git a/main/xen/stdint_local.h b/main/xen/stdint_local.h
index 2c2fa6dd83..0eb485aaa1 100644
--- a/main/xen/stdint_local.h
+++ b/main/xen/stdint_local.h
@@ -1,23 +1,19 @@
/* 32 bit int types */
#ifndef STDINT_LOCAL_H
#define STDINT_LOCAL_H
-typedef signed char int8_t;
-typedef short int int16_t;
-typedef int int32_t;
-# if defined(__x86_64__)
-typedef long int int64_t;
-#else
-typedef long long int int64_t;
-#endif
+typedef __INT8_TYPE__ int8_t;
+typedef __INT16_TYPE__ int16_t;
+typedef __INT32_TYPE__ int32_t;
+typedef __INT64_TYPE__ int64_t;
+typedef __INTPTR_TYPE__ intptr_t;
/* Unsigned. */
-typedef unsigned char uint8_t;
-typedef unsigned short int uint16_t;
-typedef unsigned int uint32_t;
-# if defined(__x86_64__)
-typedef unsigned long int uint64_t;
-#else
-typedef unsigned long long int uint64_t;
-#endif
+typedef __UINT8_TYPE__ uint8_t;
+typedef __UINT16_TYPE__ uint16_t;
+typedef __UINT32_TYPE__ uint32_t;
+typedef __UINT64_TYPE__ uint64_t;
+typedef __UINTPTR_TYPE__ uintptr_t;
+#define INTPTR_MAX 0x7fffffffffffffffL
+#define UINTPTR_MAX 0xffffffffffffffffUL
#endif