summaryrefslogtreecommitdiffstats
path: root/include/types.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/types.h')
-rw-r--r--include/types.h17
1 files changed, 14 insertions, 3 deletions
diff --git a/include/types.h b/include/types.h
index e578adb..f7c0eb6 100644
--- a/include/types.h
+++ b/include/types.h
@@ -1,13 +1,24 @@
-#define NULL 0
+#ifndef TYPES_H
+#define TYPES_H
+
+#include <arch>
+#define NULL 0
+
+#if defined(__IAPC)
typedef unsigned char uint8;
typedef unsigned short int uint16;
typedef unsigned long uint32;
typedef unsigned long long uint64;
#if defined(__x86_64)
- typedef uint64 memAddr;
+ typedef uint64 uintptr;
#else
- typedef uint32 memAddr;
+ typedef uint32 uintptr;
+#endif
+#else
+ #error IA-PC only support
+#endif
+
#endif