~ubuntu-branches/ubuntu/hardy/libgc/hardy-updates

« back to all changes in this revision

Viewing changes to include/gc_config_macros.h

  • Committer: Bazaar Package Importer
  • Author(s): Ryan Murray
  • Date: 2005-02-03 00:50:53 UTC
  • mto: (3.1.1 etch) (1.2.4 upstream)
  • mto: This revision was merged to the branch mainline in revision 3.
  • Revision ID: james.westby@ubuntu.com-20050203005053-9c0v9r2qcm2g1cfp
Tags: upstream-6.4
ImportĀ upstreamĀ versionĀ 6.4

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
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
# define _REENTRANT
 
47
        /* Better late than never.  This fails if system headers that   */
 
48
        /* depend on this were previously included.                     */
 
49
#endif
 
50
 
 
51
#if defined(GC_DGUX386_THREADS) && !defined(_POSIX4A_DRAFT10_SOURCE)
 
52
# define _POSIX4A_DRAFT10_SOURCE 1
 
53
#endif
 
54
 
 
55
# if defined(GC_SOLARIS_PTHREADS) || defined(GC_FREEBSD_THREADS) || \
 
56
        defined(GC_IRIX_THREADS) || defined(GC_LINUX_THREADS) || \
 
57
        defined(GC_HPUX_THREADS) || defined(GC_OSF1_THREADS) || \
 
58
        defined(GC_DGUX386_THREADS) || defined(GC_DARWIN_THREADS) || \
 
59
        defined(GC_AIX_THREADS) || \
 
60
        (defined(GC_WIN32_THREADS) && defined(__CYGWIN32__))
 
61
#   define GC_PTHREADS
 
62
# endif
 
63
 
 
64
#if defined(GC_THREADS) && !defined(GC_PTHREADS)
 
65
# if defined(__linux__)
 
66
#   define GC_LINUX_THREADS
 
67
#   define GC_PTHREADS
 
68
# endif
 
69
# if !defined(LINUX) && (defined(_PA_RISC1_1) || defined(_PA_RISC2_0) \
 
70
                         || defined(hppa) || defined(__HPPA))
 
71
#   define GC_HPUX_THREADS
 
72
#   define GC_PTHREADS
 
73
# endif
 
74
# if !defined(__linux__) && (defined(__alpha) || defined(__alpha__))
 
75
#   define GC_OSF1_THREADS
 
76
#   define GC_PTHREADS
 
77
# endif
 
78
# if defined(__mips) && !defined(__linux__)
 
79
#   define GC_IRIX_THREADS
 
80
#   define GC_PTHREADS
 
81
# endif
 
82
# if defined(__sparc) && !defined(__linux__)
 
83
#   define GC_SOLARIS_PTHREADS
 
84
#   define GC_PTHREADS
 
85
# endif
 
86
# if defined(__APPLE__) && defined(__MACH__) && defined(__ppc__)
 
87
#   define GC_DARWIN_THREADS
 
88
#   define GC_PTHREADS
 
89
# endif
 
90
# if !defined(GC_PTHREADS) && defined(__FreeBSD__)
 
91
#   define GC_FREEBSD_THREADS
 
92
#   define GC_PTHREADS
 
93
# endif
 
94
# if defined(DGUX) && (defined(i386) || defined(__i386__))
 
95
#   define GC_DGUX386_THREADS
 
96
#   define GC_PTHREADS
 
97
# endif
 
98
#endif /* GC_THREADS */
 
99
 
 
100
#if defined(GC_THREADS) && !defined(GC_PTHREADS) && \
 
101
    (defined(_WIN32) || defined(_MSC_VER) || defined(__CYGWIN__) \
 
102
     || defined(__MINGW32__) || defined(__BORLANDC__) \
 
103
     || defined(_WIN32_WCE))
 
104
# define GC_WIN32_THREADS
 
105
#endif
 
106
 
 
107
#if defined(GC_SOLARIS_PTHREADS) && !defined(GC_SOLARIS_THREADS)
 
108
#   define GC_SOLARIS_THREADS
 
109
#endif
 
110
 
 
111
# define __GC
 
112
# ifndef _WIN32_WCE
 
113
#   include <stddef.h>
 
114
# else /* ! _WIN32_WCE */
 
115
/* Yet more kluges for WinCE */
 
116
#   include <stdlib.h>          /* size_t is defined here */
 
117
    typedef long ptrdiff_t;     /* ptrdiff_t is not defined */
 
118
# endif
 
119
 
 
120
#if defined(_DLL) && !defined(GC_NOT_DLL) && !defined(GC_DLL)
 
121
# define GC_DLL
 
122
#endif
 
123
 
 
124
#if defined(__MINGW32__) && defined(GC_DLL)
 
125
# ifdef GC_BUILD
 
126
#   define GC_API __declspec(dllexport)
 
127
# else
 
128
#   define GC_API __declspec(dllimport)
 
129
# endif
 
130
#endif
 
131
 
 
132
#if (defined(__DMC__) || defined(_MSC_VER)) && defined(GC_DLL)
 
133
# ifdef GC_BUILD
 
134
#   define GC_API extern __declspec(dllexport)
 
135
# else
 
136
#   define GC_API __declspec(dllimport)
 
137
# endif
 
138
#endif
 
139
 
 
140
#if defined(__WATCOMC__) && defined(GC_DLL)
 
141
# ifdef GC_BUILD
 
142
#   define GC_API extern __declspec(dllexport)
 
143
# else
 
144
#   define GC_API extern __declspec(dllimport)
 
145
# endif
 
146
#endif
 
147
 
 
148
#ifndef GC_API
 
149
#define GC_API extern
 
150
#endif
 
151