* configure.ac: Define ENABLE_ESCAPE if ENABLE_SSA is defined.
[cacao.git] / src / mm / boehm-gc / include / gc_config_macros.h
1 /*
2  * This should never be included directly.  It is included only from gc.h.
3  * We separate it only to make gc.h more suitable as documentation.
4  * 
5  * Some tests for old macros.  These violate our namespace rules and will
6  * disappear shortly.  Use the GC_ names.
7  */
8 #if defined(SOLARIS_THREADS) || defined(_SOLARIS_THREADS)
9 # define GC_SOLARIS_THREADS
10 #endif
11 #if defined(_SOLARIS_PTHREADS)
12 # define GC_SOLARIS_PTHREADS
13 #endif
14 #if defined(IRIX_THREADS)
15 # define GC_IRIX_THREADS
16 #endif
17 #if defined(DGUX_THREADS)
18 # if !defined(GC_DGUX386_THREADS)
19 #  define GC_DGUX386_THREADS
20 # endif
21 #endif
22 #if defined(AIX_THREADS)
23 # define GC_AIX_THREADS
24 #endif
25 #if defined(HPUX_THREADS)
26 # define GC_HPUX_THREADS
27 #endif
28 #if defined(OSF1_THREADS)
29 # define GC_OSF1_THREADS
30 #endif
31 #if defined(LINUX_THREADS)
32 # define GC_LINUX_THREADS
33 #endif
34 #if defined(WIN32_THREADS)
35 # define GC_WIN32_THREADS
36 #endif
37 #if defined(USE_LD_WRAP)
38 # define GC_USE_LD_WRAP
39 #endif
40
41 #if !defined(_REENTRANT) && (defined(GC_SOLARIS_THREADS) \
42                              || defined(GC_SOLARIS_PTHREADS) \
43                              || defined(GC_HPUX_THREADS) \
44                              || defined(GC_AIX_THREADS) \
45                              || defined(GC_LINUX_THREADS) \
46                              || defined(GC_NETBSD_THREADS))
47 # define _REENTRANT
48         /* Better late than never.  This fails if system headers that   */
49         /* depend on this were previously included.                     */
50 #endif
51
52 #if !defined(_PTHREADS) && defined(GC_NETBSD_THREADS)
53 # define _PTHREADS
54 #endif
55
56 #if defined(GC_DGUX386_THREADS) && !defined(_POSIX4A_DRAFT10_SOURCE)
57 # define _POSIX4A_DRAFT10_SOURCE 1
58 #endif
59
60 # if defined(GC_SOLARIS_PTHREADS) || defined(GC_FREEBSD_THREADS) || \
61         defined(GC_IRIX_THREADS) || defined(GC_LINUX_THREADS) || \
62         defined(GC_HPUX_THREADS) || defined(GC_OSF1_THREADS) || \
63         defined(GC_DGUX386_THREADS) || defined(GC_DARWIN_THREADS) || \
64         defined(GC_AIX_THREADS) || defined(GC_NETBSD_THREADS) || \
65         (defined(GC_WIN32_THREADS) && defined(__CYGWIN32__))
66 #   define GC_PTHREADS
67 # endif
68
69 #if defined(GC_THREADS) && !defined(GC_PTHREADS)
70 # if defined(__linux__)
71 #   define GC_LINUX_THREADS
72 #   define GC_PTHREADS
73 # endif
74 # if !defined(__linux__) && (defined(_PA_RISC1_1) || defined(_PA_RISC2_0) \
75                          || defined(hppa) || defined(__HPPA))
76 #   define GC_HPUX_THREADS
77 #   define GC_PTHREADS
78 # endif
79 # if !defined(__linux__) && (defined(__alpha) || defined(__alpha__))
80 #   define GC_OSF1_THREADS
81 #   define GC_PTHREADS
82 # endif
83 # if defined(__mips) && !defined(__linux__)
84 #   define GC_IRIX_THREADS
85 #   define GC_PTHREADS
86 # endif
87 # if defined(__sparc) && !defined(__linux__)
88 #   define GC_SOLARIS_PTHREADS
89 #   define GC_PTHREADS
90 # endif
91 # if defined(__APPLE__) && defined(__MACH__) && defined(__ppc__)
92 #   define GC_DARWIN_THREADS
93 #   define GC_PTHREADS
94 # endif
95 # if !defined(GC_PTHREADS) && (defined(__FreeBSD__) || defined(__DragonFly__))
96 #   define GC_FREEBSD_THREADS
97 #   define GC_PTHREADS
98 # endif
99 # if !defined(GC_PTHREADS) && defined(__NetBSD__)
100 #   define GC_NETBSD_THREADS
101 #   define GC_PTHREADS
102 # endif
103 # if defined(DGUX) && (defined(i386) || defined(__i386__))
104 #   define GC_DGUX386_THREADS
105 #   define GC_PTHREADS
106 # endif
107 # if defined(_AIX)
108 #   define GC_AIX_THREADS
109 #   define GC_PTHREADS
110 # endif
111 #endif /* GC_THREADS */
112
113 #if defined(GC_THREADS) && !defined(GC_PTHREADS) && \
114     (defined(_WIN32) || defined(_MSC_VER) || defined(__CYGWIN__) \
115      || defined(__MINGW32__) || defined(__BORLANDC__) \
116      || defined(_WIN32_WCE))
117 # define GC_WIN32_THREADS
118 #endif
119
120 #if defined(GC_SOLARIS_PTHREADS) && !defined(GC_SOLARIS_THREADS)
121 #   define GC_SOLARIS_THREADS
122 #endif
123
124 # define __GC
125 # ifndef _WIN32_WCE
126 #   include <stddef.h>
127 # else /* ! _WIN32_WCE */
128 /* Yet more kluges for WinCE */
129 #   include <stdlib.h>          /* size_t is defined here */
130     typedef long ptrdiff_t;     /* ptrdiff_t is not defined */
131 # endif
132
133 #if defined(_DLL) && !defined(GC_NOT_DLL) && !defined(GC_DLL)
134 # define GC_DLL
135 #endif
136
137 #if defined(__MINGW32__) && defined(GC_DLL)
138 # ifdef GC_BUILD
139 #   define GC_API __declspec(dllexport)
140 # else
141 #   define GC_API __declspec(dllimport)
142 # endif
143 #endif
144
145 #if (defined(__DMC__) || defined(_MSC_VER)) && defined(GC_DLL)
146 # ifdef GC_BUILD
147 #   define GC_API extern __declspec(dllexport)
148 # else
149 #   define GC_API __declspec(dllimport)
150 # endif
151 #endif
152
153 #if defined(__WATCOMC__) && defined(GC_DLL)
154 # ifdef GC_BUILD
155 #   define GC_API extern __declspec(dllexport)
156 # else
157 #   define GC_API extern __declspec(dllimport)
158 # endif
159 #endif
160
161 #ifndef GC_API
162 #define GC_API extern
163 #endif
164