diff options
author | John van Groningen | 2006-01-10 14:10:22 +0000 |
---|---|---|
committer | John van Groningen | 2006-01-10 14:10:22 +0000 |
commit | 7c3efe45b1f889621b1ead7489f5e2eccb386a1a (patch) | |
tree | ea8dd3c0e13d01382e4df243e154e1f440f8cb26 /cgport.h | |
parent | add 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.h | 17 |
1 files changed, 17 insertions, 0 deletions
@@ -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 |