summaryrefslogtreecommitdiff
path: root/cgport.h
diff options
context:
space:
mode:
authorJohn van Groningen2003-05-23 15:40:03 +0000
committerJohn van Groningen2003-05-23 15:40:03 +0000
commit960ea63816d87f9e79d419b3f3ce8380f0d04487 (patch)
treea7a9067c3a90cfb1f43517988d53438614132eb3 /cgport.h
parentuse ffree instead of finit (diff)
add SEPARATE_A_AND_B_STACK_OVERFLOW_CHECKS #define
Diffstat (limited to 'cgport.h')
-rw-r--r--cgport.h77
1 files changed, 77 insertions, 0 deletions
diff --git a/cgport.h b/cgport.h
new file mode 100644
index 0000000..7ff8d22
--- /dev/null
+++ b/cgport.h
@@ -0,0 +1,77 @@
+
+#define FINALIZERS
+
+#undef PROJECT_BUILDER
+
+#ifdef PROJECT_BUILDER
+# define GNU_C
+#endif
+
+#if defined (__MWERKS__) || defined (__MRC__) || defined (PROJECT_BUILDER)
+# undef MACH_O
+# define POWER
+# ifdef __cplusplus
+# include "cgrenameglobals.h"
+# elif !defined (MAKE_MPW_TOOL)
+# define G_POWER
+# endif
+#endif
+
+#if 1 || defined (MACH_O)
+#define ALIGN_C_CALLS
+#endif
+
+#ifdef THINK_C
+# define ANSI_C
+# define WORD int
+# define UWORD unsigned int
+#else
+# define WORD short
+# define UWORD unsigned short
+#endif
+
+#ifdef GNU_C
+# define ANSI_C
+# undef mc68020
+# ifdef SUN_C
+# define VARIABLE_ARRAY_SIZE 1
+# else
+# define VARIABLE_ARRAY_SIZE 0
+# endif
+#else
+# if defined (POWER) && !defined (__MRC__) && !defined (__MWERKS__)
+# define VARIABLE_ARRAY_SIZE 0
+# else
+# define VARIABLE_ARRAY_SIZE
+# endif
+#endif
+
+#define LONG long
+#define BYTE char
+#define ULONG unsigned long
+#define UBYTE unsigned char
+
+#define VOID void
+
+#ifdef THINK_C
+# define DOUBLE short double
+#else
+# define DOUBLE double
+#endif
+
+#ifdef sparc
+#else
+# if defined (I486) || defined (G_POWER)
+# else
+# define M68000
+# endif
+#endif
+
+#if defined (I486) || (defined (G_POWER) || defined (ALIGN_C_CALLS)) || defined (MACH_O)
+# define SEPARATE_A_AND_B_STACK_OVERFLOW_CHECKS
+#endif
+
+#ifdef __MWERKS__
+int mystrcmp (char *p1,char *p2);
+#define strcmp(s1,s2) mystrcmp(s1,s2)
+#endif