diff options
| author | Alexey Gavrilov <rebovas@yahoo.com> | 2024-03-27 19:49:10 +0700 |
|---|---|---|
| committer | Alexey Gavrilov <rebovas@yahoo.com> | 2024-03-27 19:49:10 +0700 |
| commit | e51dea0b6e34c2959b3b0f4a5db6b11d4b619960 (patch) | |
| tree | e6a457ec4b2758c0c3bef78df475ad52d92a7ab4 /include/types.h | |
| parent | e0bac2387b373316337b177fe8aa9851b0d5e870 (diff) | |
Some updates: rename memAddr, define architecture
Diffstat (limited to 'include/types.h')
| -rw-r--r-- | include/types.h | 17 |
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 |
