summaryrefslogtreecommitdiff
path: root/cgport.h
blob: 7ff8d22762485935cb43b5cb32a576371f3dcd84 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
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