]> git.sesse.net Git - rdpsrv/blob - Xserver/include/Xosdefs.h
Import X server from vnc-3.3.7.
[rdpsrv] / Xserver / include / Xosdefs.h
1 /*
2  * O/S-dependent (mis)feature macro definitions
3  *
4  * $XConsortium: Xosdefs.h /main/16 1996/09/28 16:17:29 rws $
5  * $XFree86: xc/include/Xosdefs.h,v 3.11 1996/12/23 05:58:09 dawes Exp $
6  *
7 Copyright (c) 1991  X Consortium
8
9 Permission is hereby granted, free of charge, to any person obtaining a copy
10 of this software and associated documentation files (the "Software"), to deal
11 in the Software without restriction, including without limitation the rights
12 to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
13 copies of the Software, and to permit persons to whom the Software is
14 furnished to do so, subject to the following conditions:
15
16 The above copyright notice and this permission notice shall be included in
17 all copies or substantial portions of the Software.
18
19 THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
20 IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
21 FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.  IN NO EVENT SHALL THE
22 X CONSORTIUM BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN
23 AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
24 CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
25
26 Except as contained in this notice, the name of the X Consortium shall not be
27 used in advertising or otherwise to promote the sale, use or other dealings
28 in this Software without prior written authorization from the X Consortium.
29  */
30
31 #ifndef _XOSDEFS_H_
32 #define _XOSDEFS_H_
33
34 /*
35  * X_NOT_STDC_ENV means does not have ANSI C header files.  Lack of this
36  * symbol does NOT mean that the system has stdarg.h.
37  *
38  * X_NOT_POSIX means does not have POSIX header files.  Lack of this
39  * symbol does NOT mean that the POSIX environment is the default.
40  * You may still have to define _POSIX_SOURCE to get it.
41  */
42
43 #ifdef NOSTDHDRS
44 #define X_NOT_POSIX
45 #define X_NOT_STDC_ENV
46 #endif
47
48 #ifdef sony
49 #if !defined(SYSTYPE_SYSV) && !defined(_SYSTYPE_SYSV)
50 #define X_NOT_POSIX
51 #endif
52 #endif
53
54 #ifdef UTEK
55 #define X_NOT_POSIX
56 #define X_NOT_STDC_ENV
57 #endif
58
59 #ifdef vax
60 #ifndef ultrix                  /* assume vanilla BSD */
61 #define X_NOT_POSIX
62 #define X_NOT_STDC_ENV
63 #endif
64 #endif
65
66 #ifdef luna
67 #define X_NOT_POSIX
68 #define X_NOT_STDC_ENV
69 #endif
70
71 #ifdef Mips
72 #define X_NOT_POSIX
73 #define X_NOT_STDC_ENV
74 #endif
75   
76 #ifdef USL
77 #ifdef SYSV /* (release 3.2) */
78 #define X_NOT_POSIX
79 #define X_NOT_STDC_ENV
80 #endif
81 #endif
82
83 #ifdef i386
84 #ifdef SYSV
85 #if !(defined(ISC) && defined(_POSIX_SOURCE))
86 #ifndef SCO
87 #ifndef _SCO_DS /* SCO 5.0 has SVR4 header files */
88 #define X_NOT_POSIX
89 #endif
90 #define X_NOT_STDC_ENV
91 #endif
92 #endif /* !(defined(ISC) && defined(_POSIX_SOURCE)) */
93 #endif
94 #endif
95
96 #ifdef MOTOROLA
97 #ifdef SYSV
98 #define X_NOT_STDC_ENV
99 #endif
100 #endif
101
102 #ifdef sun
103 #ifdef SVR4
104 /* define this to whatever it needs to be */
105 #define X_POSIX_C_SOURCE 199300L
106 #endif
107 #endif
108
109 #ifdef WIN32
110 #ifndef _POSIX_
111 #define X_NOT_POSIX
112 #endif
113 #endif
114
115 #if defined(nec_ews_svr2) || defined(SX) || defined(PC_UX)
116 #define X_NOT_POSIX
117 #define X_NOT_STDC_ENV
118 #endif
119
120 #ifdef __EMX__
121 #define USGISH
122 /* EMX claims to be ANSI, so X_NOT_STDC_ENV does not hold */
123 /* could have been provided as std flags as well */
124 #define X_WCHAR
125 #define X_LOCALE
126 #endif
127
128 #endif /* _XOSDEFS_H_ */