summaryrefslogtreecommitdiff
path: root/cgport.h
diff options
context:
space:
mode:
authorJohn van Groningen2006-01-10 14:10:22 +0000
committerJohn van Groningen2006-01-10 14:10:22 +0000
commit7c3efe45b1f889621b1ead7489f5e2eccb386a1a (patch)
treeea8dd3c0e13d01382e4df243e154e1f440f8cb26 /cgport.h
parentadd pushLc instruction for pushing the value of a label, with (diff)
port to 64 bit windows
Diffstat (limited to 'cgport.h')
-rw-r--r--cgport.h17
1 files changed, 17 insertions, 0 deletions
diff --git a/cgport.h b/cgport.h
index 58c5d86..a0ee42d 100644
--- a/cgport.h
+++ b/cgport.h
@@ -2,6 +2,13 @@
#define FINALIZERS
#define NEW_APPLY
+#ifdef _WIN64
+# define G_AI64
+#endif
+#ifdef G_AI64
+# define G_A64
+#endif
+
#if defined (__MWERKS__) || defined (__MRC__)
# define POWER
# ifdef __cplusplus
@@ -69,6 +76,16 @@
# endif
#endif
+#ifndef G_A64
+# define STACK_ELEMENT_SIZE 4
+# define STACK_ELEMENT_LOG_SIZE 2
+# define CleanInt LONG
+#else
+# define STACK_ELEMENT_SIZE 8
+# define STACK_ELEMENT_LOG_SIZE 3
+# define CleanInt __int64
+#endif
+
#if defined (I486) || (defined (G_POWER) || defined (ALIGN_C_CALLS)) || defined (MACH_O)
# define SEPARATE_A_AND_B_STACK_OVERFLOW_CHECKS
#endif