Debian Codegraph @

nx-X11/include/Xosdefs.h

raw
1 /*
2 * O/S-dependent (mis)feature macro definitions
3 *
4 * $XdotOrg: xc/include/Xosdefs.h,v 1.7 2005/11/08 06:33:25 jkj Exp $
5 * $Xorg: Xosdefs.h,v 1.5 2001/02/09 02:03:23 xorgcvs Exp $
6 *
7 Copyright 1991, 1998 The Open Group
8
9 Permission to use, copy, modify, distribute, and sell this software and its
10 documentation for any purpose is hereby granted without fee, provided that
11 the above copyright notice appear in all copies and that both that
12 copyright notice and this permission notice appear in supporting
13 documentation.
14
15 The above copyright notice and this permission notice shall be included in
16 all copies or substantial portions of the Software.
17
18 THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
19 IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
20 FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
21 OPEN GROUP BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN
22 AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
23 CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
24
25 Except as contained in this notice, the name of The Open Group shall not be
26 used in advertising or otherwise to promote the sale, use or other dealings
27 in this Software without prior written authorization from The Open Group.
28 */
29
30 #ifndef _XOSDEFS_H_
31 #define _XOSDEFS_H_
32
33 /*
34 * X_NOT_STDC_ENV means does not have ANSI C header files. Lack of this
35 * symbol does NOT mean that the system has stdarg.h.
36 *
37 * X_NOT_POSIX means does not have POSIX header files. Lack of this
38 * symbol does NOT mean that the POSIX environment is the default.
39 * You may still have to define _POSIX_SOURCE to get it.
40 */
41
42 #ifdef NOSTDHDRS
43 #define X_NOT_POSIX
44 #define X_NOT_STDC_ENV
45 #endif
46
47 #ifdef sony
48 #if !defined(SYSTYPE_SYSV) && !defined(_SYSTYPE_SYSV)
49 #define X_NOT_POSIX
50 #endif
51 #endif
52
53 #ifdef UTEK
54 #define X_NOT_POSIX
55 #define X_NOT_STDC_ENV
56 #endif
57
58 #ifdef vax
59 #ifndef ultrix /* assume vanilla BSD */
60 #define X_NOT_POSIX
61 #define X_NOT_STDC_ENV
62 #endif
63 #endif
64
65 #ifdef luna
66 #define X_NOT_POSIX
67 #define X_NOT_STDC_ENV
68 #endif
69
70 #ifdef Mips
71 #define X_NOT_POSIX
72 #define X_NOT_STDC_ENV
73 #endif
74
75 #ifdef USL
76 #ifdef SYSV /* (release 3.2) */
77 #define X_NOT_POSIX
78 #define X_NOT_STDC_ENV
79 #endif
80 #endif
81
82 #ifdef _SCO_DS
83 #ifndef __SCO__
84 #define __SCO__
85 #endif
86 #endif
87
88 #ifdef i386
89 #ifdef SYSV
90 #if !defined(ISC) && !defined(__SCO__) && !defined(_SEQUENT_) && \
91 !defined(__UNIXWARE__) && !defined(sun)
92 #if !defined(_POSIX_SOURCE)
93 #define X_NOT_POSIX
94 #endif
95 #define X_NOT_STDC_ENV
96 #endif
97 #endif
98 #endif
99
100 #ifdef MOTOROLA
101 #ifdef SYSV
102 #define X_NOT_STDC_ENV
103 #endif
104 #endif
105
106 #ifdef sun
107 /* Imake configs define SVR4 on Solaris, but cc & gcc only define __SVR4
108 * This check allows non-Imake configured programs to build correctly.
109 */
110 #if defined(__SVR4) && !defined(SVR4)
111 #define SVR4 1
112 #endif
113 #ifdef SVR4
114 /* define this to whatever it needs to be */
115 #define X_POSIX_C_SOURCE 199300L
116 #endif
117 #endif
118
119 #ifdef WIN32
120 #ifndef _POSIX_
121 #define X_NOT_POSIX
122 #endif
123 #endif
124
125 #if defined(nec_ews_svr2) || defined(SX) || defined(PC_UX)
126 #define X_NOT_POSIX
127 #define X_NOT_STDC_ENV
128 #endif
129
130 #ifdef __DARWIN__
131 #define NULL_NOT_ZERO
132 #endif
133
134 #ifdef __GNU__
135 #ifndef PATH_MAX
136 #define PATH_MAX 4096
137 #endif
138 #ifndef MAXPATHLEN
139 #define MAXPATHLEN 4096
140 #endif
141 #endif
142
143 #if defined(__SCO__) || defined(__UNIXWARE__)
144 # ifndef PATH_MAX
145 # define PATH_MAX 1024
146 # endif
147 # ifndef MAXPATHLEN
148 # define MAXPATHLEN 1024
149 # endif
150 #endif
151
152 #if defined(__OpenBSD__) || defined(__NetBSD__) || defined(__FreeBSD__) \
153 || defined(__Darwin__) || defined(__DragonFly__)
154 # ifndef CSRG_BASED
155 # define CSRG_BASED
156 # endif
157 #endif
158
159 #endif /* _XOSDEFS_H_ */
160