OpenCores
URL https://opencores.org/ocsvn/openrisc/openrisc/trunk

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-dev/] [or1k-gcc/] [boehm-gc/] [include/] [gc_config_macros.h] - Blame information for rev 721

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 721 jeremybenn
/*
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
#if !defined(_REENTRANT) && (defined(GC_SOLARIS_THREADS) \
6
                             || defined(GC_SOLARIS_PTHREADS) \
7
                             || defined(GC_HPUX_THREADS) \
8
                             || defined(GC_AIX_THREADS) \
9
                             || defined(GC_LINUX_THREADS))
10
# define _REENTRANT
11
        /* Better late than never.  This fails if system headers that   */
12
        /* depend on this were previously included.                     */
13
#endif
14
 
15
#if defined(GC_DGUX386_THREADS) && !defined(_POSIX4A_DRAFT10_SOURCE)
16
# define _POSIX4A_DRAFT10_SOURCE 1
17
#endif
18
 
19
# if defined(GC_SOLARIS_PTHREADS) || defined(GC_FREEBSD_THREADS) || \
20
        defined(GC_IRIX_THREADS) || defined(GC_LINUX_THREADS) || \
21
        defined(GC_HPUX_THREADS) || defined(GC_OSF1_THREADS) || \
22
        defined(GC_DGUX386_THREADS) || defined(GC_DARWIN_THREADS) || \
23
        defined(GC_AIX_THREADS) || \
24
        (defined(GC_WIN32_THREADS) && defined(__CYGWIN32__))
25
#   define GC_PTHREADS
26
# endif
27
 
28
#if defined(GC_THREADS) && !defined(GC_PTHREADS)
29
# if defined(__linux__)
30
#   define GC_LINUX_THREADS
31
#   define GC_PTHREADS
32
# endif
33
# if !defined(LINUX) && (defined(_PA_RISC1_1) || defined(_PA_RISC2_0) \
34
                         || defined(hppa) || defined(__HPPA))
35
#   define GC_HPUX_THREADS
36
#   define GC_PTHREADS
37
# endif
38
# if !defined(__linux__) && (defined(__alpha) || defined(__alpha__))
39
#   define GC_OSF1_THREADS
40
#   define GC_PTHREADS
41
# endif
42
# if defined(__mips) && !defined(__linux__)
43
#   define GC_IRIX_THREADS
44
#   define GC_PTHREADS
45
# endif
46
# if defined(__sparc) && !defined(__linux__)
47
#   define GC_SOLARIS_PTHREADS
48
#   define GC_PTHREADS
49
# endif
50
# if defined(__APPLE__) && defined(__MACH__) && defined(__ppc__)
51
#   define GC_DARWIN_THREADS
52
#   define GC_PTHREADS
53
# endif
54
# if !defined(GC_PTHREADS) && defined(__FreeBSD__)
55
#   define GC_FREEBSD_THREADS
56
#   define GC_PTHREADS
57
# endif
58
# if defined(DGUX) && (defined(i386) || defined(__i386__))
59
#   define GC_DGUX386_THREADS
60
#   define GC_PTHREADS
61
# endif
62
# if defined(_AIX)
63
#   define GC_AIX_THREADS
64
#   define GC_PTHREADS
65
# endif
66
#endif /* GC_THREADS */
67
 
68
#if defined(GC_THREADS) && !defined(GC_PTHREADS) && \
69
    (defined(_WIN32) || defined(_MSC_VER) || defined(__CYGWIN__) \
70
     || defined(__MINGW32__) || defined(__BORLANDC__) \
71
     || defined(_WIN32_WCE))
72
# define GC_WIN32_THREADS
73
#endif
74
 
75
# define __GC
76
# ifndef _WIN32_WCE
77
#   include <stddef.h>
78
# else /* ! _WIN32_WCE */
79
/* Yet more kluges for WinCE */
80
#   include <stdlib.h>          /* size_t is defined here */
81
    typedef long ptrdiff_t;     /* ptrdiff_t is not defined */
82
# endif
83
 
84
#if ((defined(_DLL) && !defined (__MINGW32__)) \
85
     || (defined (DLL_EXPORT) && defined (GC_BUILD))) \
86
    && !defined(GC_DLL)
87
# define GC_DLL
88
#endif
89
 
90
#if defined(__MINGW32__) && defined(GC_DLL)
91
# ifdef GC_BUILD
92
#   define GC_API __declspec(dllexport)
93
# else
94
#   define GC_API __declspec(dllimport)
95
# endif
96
#endif
97
 
98
#if (defined(__DMC__) || defined(_MSC_VER)) && defined(GC_DLL)
99
# ifdef GC_BUILD
100
#   define GC_API extern __declspec(dllexport)
101
# else
102
#   define GC_API __declspec(dllimport)
103
# endif
104
#endif
105
 
106
#if defined(__WATCOMC__) && defined(GC_DLL)
107
# ifdef GC_BUILD
108
#   define GC_API extern __declspec(dllexport)
109
# else
110
#   define GC_API extern __declspec(dllimport)
111
# endif
112
#endif
113
 
114
#ifndef GC_API
115
#define GC_API extern
116
#endif
117
 

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.