2
* O/S-dependent (mis)feature macro definitions
4
* $XdotOrg: xc/include/Xosdefs.h,v 1.3 2005/04/28 22:04:12 alanc Exp $
5
* $Xorg: Xosdefs.h,v 1.5 2001/02/09 02:03:23 xorgcvs Exp $
7
Copyright 1991, 1998 The Open Group
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
15
The above copyright notice and this permission notice shall be included in
16
all copies or substantial portions of the Software.
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.
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.
29
/* $XFree86: xc/include/Xosdefs.h,v 3.20 2002/05/31 18:45:39 dawes Exp $ */
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.
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.
45
#define X_NOT_STDC_ENV
49
#if !defined(SYSTYPE_SYSV) && !defined(_SYSTYPE_SYSV)
56
#define X_NOT_STDC_ENV
60
#ifndef ultrix /* assume vanilla BSD */
62
#define X_NOT_STDC_ENV
68
#define X_NOT_STDC_ENV
73
#define X_NOT_STDC_ENV
77
#ifdef SYSV /* (release 3.2) */
79
#define X_NOT_STDC_ENV
94
#if !defined(ISC) && !defined(SCO) && !defined(_SEQUENT_) && !defined(sun)
95
#if !defined(_POSIX_SOURCE) && !defined(_SCO_DS)
98
#define X_NOT_STDC_ENV
105
#define X_NOT_STDC_ENV
110
/* Imake configs define SVR4 on Solaris, but cc & gcc only define __SVR4
111
* This check allows non-Imake configured programs to build correctly.
113
#if defined(__SVR4) && !defined(SVR4)
117
/* define this to whatever it needs to be */
118
#define X_POSIX_C_SOURCE 199300L
128
#if defined(nec_ews_svr2) || defined(SX) || defined(PC_UX)
130
#define X_NOT_STDC_ENV
135
#define NULL_NOT_ZERO
139
#define NULL_NOT_ZERO
144
#define PATH_MAX 4096
147
#define MAXPATHLEN 4096
150
#endif /* _XOSDEFS_H_ */