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