Mercurial > emacs
comparison gc/include/gc_config_macros.h @ 51488:5de98dce4bd1
*** empty log message ***
author | Dave Love <fx@gnu.org> |
---|---|
date | Thu, 05 Jun 2003 17:49:22 +0000 |
parents | |
children |
comparison
equal
deleted
inserted
replaced
51487:01d68b199093 | 51488:5de98dce4bd1 |
---|---|
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(HPUX_THREADS) | |
23 # define GC_HPUX_THREADS | |
24 #endif | |
25 #if defined(OSF1_THREADS) | |
26 # define GC_OSF1_THREADS | |
27 #endif | |
28 #if defined(LINUX_THREADS) | |
29 # define GC_LINUX_THREADS | |
30 #endif | |
31 #if defined(WIN32_THREADS) | |
32 # define GC_WIN32_THREADS | |
33 #endif | |
34 #if defined(USE_LD_WRAP) | |
35 # define GC_USE_LD_WRAP | |
36 #endif | |
37 | |
38 #if !defined(_REENTRANT) && (defined(GC_SOLARIS_THREADS) \ | |
39 || defined(GC_SOLARIS_PTHREADS) \ | |
40 || defined(GC_HPUX_THREADS) \ | |
41 || defined(GC_LINUX_THREADS)) | |
42 # define _REENTRANT | |
43 /* Better late than never. This fails if system headers that */ | |
44 /* depend on this were previously included. */ | |
45 #endif | |
46 | |
47 #if defined(GC_DGUX386_THREADS) && !defined(_POSIX4A_DRAFT10_SOURCE) | |
48 # define _POSIX4A_DRAFT10_SOURCE 1 | |
49 #endif | |
50 | |
51 # if defined(GC_SOLARIS_PTHREADS) || defined(GC_FREEBSD_THREADS) || \ | |
52 defined(GC_IRIX_THREADS) || defined(GC_LINUX_THREADS) || \ | |
53 defined(GC_HPUX_THREADS) || defined(GC_OSF1_THREADS) || \ | |
54 defined(GC_DGUX386_THREADS) || defined(GC_MACOSX_THREADS) || \ | |
55 (defined(GC_WIN32_THREADS) && defined(__CYGWIN32__)) | |
56 # define GC_PTHREADS | |
57 # endif | |
58 | |
59 #if defined(GC_THREADS) && !defined(GC_PTHREADS) | |
60 # if defined(__linux__) | |
61 # define GC_LINUX_THREADS | |
62 # define GC_PTHREADS | |
63 # endif | |
64 # if !defined(LINUX) && (defined(_PA_RISC1_1) || defined(_PA_RISC2_0) \ | |
65 || defined(hppa) || defined(__HPPA)) | |
66 # define GC_HPUX_THREADS | |
67 # define GC_PTHREADS | |
68 # endif | |
69 # if !defined(__linux__) && (defined(__alpha) || defined(__alpha__)) | |
70 # define GC_OSF1_THREADS | |
71 # define GC_PTHREADS | |
72 # endif | |
73 # if defined(__mips) && !defined(__linux__) | |
74 # define GC_IRIX_THREADS | |
75 # define GC_PTHREADS | |
76 # endif | |
77 # if defined(__sparc) && !defined(__linux__) | |
78 # define GC_SOLARIS_PTHREADS | |
79 # define GC_PTHREADS | |
80 # endif | |
81 # if defined(__APPLE__) && defined(__MACH__) && defined(__ppc__) | |
82 # define GC_MACOSX_THREADS | |
83 # define GC_PTHREADS | |
84 # endif | |
85 # if !defined(GC_PTHREADS) && defined(__FreeBSD__) | |
86 # define GC_FREEBSD_THREADS | |
87 # define GC_PTHREADS | |
88 # endif | |
89 # if defined(DGUX) && (defined(i386) || defined(__i386__)) | |
90 # define GC_DGUX386_THREADS | |
91 # define GC_PTHREADS | |
92 # endif | |
93 #endif /* GC_THREADS */ | |
94 | |
95 #if defined(GC_THREADS) && !defined(GC_PTHREADS) && defined(MSWIN32) | |
96 # define GC_WIN32_THREADS | |
97 #endif | |
98 | |
99 #if defined(GC_SOLARIS_PTHREADS) && !defined(GC_SOLARIS_THREADS) | |
100 # define GC_SOLARIS_THREADS | |
101 #endif | |
102 | |
103 # define __GC | |
104 # include <stddef.h> | |
105 # ifdef _WIN32_WCE | |
106 /* Yet more kluges for WinCE */ | |
107 # include <stdlib.h> /* size_t is defined here */ | |
108 typedef long ptrdiff_t; /* ptrdiff_t is not defined */ | |
109 # endif | |
110 | |
111 #if defined(__MINGW32__) && defined(_DLL) && !defined(GC_NOT_DLL) | |
112 # ifdef GC_BUILD | |
113 # define GC_API __declspec(dllexport) | |
114 # else | |
115 # define GC_API __declspec(dllimport) | |
116 # endif | |
117 #endif | |
118 | |
119 #if (defined(__DMC__) || defined(_MSC_VER)) \ | |
120 && (defined(_DLL) && !defined(GC_NOT_DLL) \ | |
121 || defined(GC_DLL)) | |
122 # ifdef GC_BUILD | |
123 # define GC_API extern __declspec(dllexport) | |
124 # else | |
125 # define GC_API __declspec(dllimport) | |
126 # endif | |
127 #endif | |
128 | |
129 #if defined(__WATCOMC__) && defined(GC_DLL) | |
130 # ifdef GC_BUILD | |
131 # define GC_API extern __declspec(dllexport) | |
132 # else | |
133 # define GC_API extern __declspec(dllimport) | |
134 # endif | |
135 #endif | |
136 | |
137 #ifndef GC_API | |
138 #define GC_API extern | |
139 #endif | |
140 |