VirtualBox

source: vbox/trunk/src/VBox/Additions/x11/x11include/XFree86-4.3/X11/Xosdefs.h@ 106664

Last change on this file since 106664 was 17236, checked in by vboxsync, 16 years ago

Additions/x11/x11include: blast! Reverted r43555 and r43556

  • Property svn:eol-style set to native
File size: 3.2 KB
Line 
1/*
2 * O/S-dependent (mis)feature macro definitions
3 *
4 * $Xorg: Xosdefs.h,v 1.5 2001/02/09 02:03:23 xorgcvs Exp $
5 *
6Copyright 1991, 1998 The Open Group
7
8Permission to use, copy, modify, distribute, and sell this software and its
9documentation for any purpose is hereby granted without fee, provided that
10the above copyright notice appear in all copies and that both that
11copyright notice and this permission notice appear in supporting
12documentation.
13
14The above copyright notice and this permission notice shall be included in
15all copies or substantial portions of the Software.
16
17THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
18IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
19FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
20OPEN GROUP BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN
21AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
22CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
23
24Except as contained in this notice, the name of The Open Group shall not be
25used in advertising or otherwise to promote the sale, use or other dealings
26in this Software without prior written authorization from The Open Group.
27 */
28/* $XFree86: xc/include/Xosdefs.h,v 3.20 2002/05/31 18:45:39 dawes Exp $ */
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 i386
83#ifdef SYSV
84#if !defined(ISC) && !defined(SCO) && !defined(_SEQUENT_)
85#if !defined(_POSIX_SOURCE) && !defined(_SCO_DS)
86#define X_NOT_POSIX
87#endif
88#define X_NOT_STDC_ENV
89#endif
90#endif
91#endif
92
93#ifdef MOTOROLA
94#ifdef SYSV
95#define X_NOT_STDC_ENV
96#endif
97#endif
98
99#ifdef sun
100/* Imake configs define SVR4 on Solaris, but cc & gcc only define __SVR4
101 * This check allows non-Imake configured programs to build correctly.
102 */
103#if defined(__SVR4) && !defined(SVR4)
104#define SVR4
105#endif
106#ifdef SVR4
107/* define this to whatever it needs to be */
108#define X_POSIX_C_SOURCE 199300L
109#endif
110#endif
111
112#ifdef WIN32
113#ifndef _POSIX_
114#define X_NOT_POSIX
115#endif
116#endif
117
118#if defined(nec_ews_svr2) || defined(SX) || defined(PC_UX)
119#define X_NOT_POSIX
120#define X_NOT_STDC_ENV
121#endif
122
123#ifdef __UNIXOS2__
124#define USGISH
125#define NULL_NOT_ZERO
126#endif
127
128#ifdef __DARWIN__
129#define NULL_NOT_ZERO
130#endif
131
132#ifdef __GNU__
133#ifndef PATH_MAX
134#define PATH_MAX 4096
135#endif
136#ifndef MAXPATHLEN
137#define MAXPATHLEN 4096
138#endif
139#endif
140#endif /* _XOSDEFS_H_ */
141
Note: See TracBrowser for help on using the repository browser.

© 2025 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette