summaryrefslogtreecommitdiff
path: root/cgport.h
diff options
context:
space:
mode:
authorJohn van Groningen2006-05-01 14:17:26 +0000
committerJohn van Groningen2006-05-01 14:17:26 +0000
commitb2d4c9be8fd379aa56d8bc392f94b3fb0dc055ef (patch)
tree42f1f2423ebdad6d00aaa85b462a045002f81a43 /cgport.h
parentenable NO_STRING_ADDRESS_IN_DESCRIPTOR for sparc (diff)
use int_64 instead of __int64, define int_64, include stdint.h on 64 bits linux
Diffstat (limited to 'cgport.h')
-rw-r--r--cgport.h19
1 files changed, 16 insertions, 3 deletions
diff --git a/cgport.h b/cgport.h
index 975159f..2bb0a4f 100644
--- a/cgport.h
+++ b/cgport.h
@@ -55,9 +55,14 @@
# endif
#endif
-#define LONG long
+#if defined (LINUX) && defined (G_A64)
+# define LONG int
+# define ULONG unsigned int
+#else
+# define LONG long
+# define ULONG unsigned long
+#endif
#define BYTE char
-#define ULONG unsigned long
#define UBYTE unsigned char
#define VOID void
@@ -83,7 +88,15 @@
#else
# define STACK_ELEMENT_SIZE 8
# define STACK_ELEMENT_LOG_SIZE 3
-# define CleanInt __int64
+# if defined (LINUX)
+# define CleanInt int64_t
+# define int_64 int64_t
+# define uint_64 uint64_t
+# else
+# define CleanInt __int64
+# define int_64 __int64
+# define uint_64 unsigned __int64
+# endif
#endif
#if defined (I486) || (defined (G_POWER) || defined (ALIGN_C_CALLS)) || defined (MACH_O)