~ubuntu-branches/ubuntu/trusty/x11proto-core/trusty

« back to all changes in this revision

Viewing changes to Xosdefs.h

  • Committer: Bazaar Package Importer
  • Author(s): Daniel Stone
  • Date: 2005-07-22 18:25:10 UTC
  • Revision ID: james.westby@ubuntu.com-20050722182510-t2zzpzgwtbs5bpa9
Tags: upstream-6.8.99.15+cvs.20050722
ImportĀ upstreamĀ versionĀ 6.8.99.15+cvs.20050722

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
/*
 
2
 * O/S-dependent (mis)feature macro definitions
 
3
 *
 
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 $
 
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
/* $XFree86: xc/include/Xosdefs.h,v 3.20 2002/05/31 18:45:39 dawes Exp $ */
 
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 _SCO_DS
 
84
#ifndef SCO
 
85
#define SCO
 
86
#endif
 
87
#ifndef SCO325
 
88
#define SCO325
 
89
#endif
 
90
#endif
 
91
 
 
92
#ifdef i386
 
93
#ifdef SYSV
 
94
#if !defined(ISC) && !defined(SCO) && !defined(_SEQUENT_) && !defined(sun)
 
95
#if !defined(_POSIX_SOURCE) && !defined(_SCO_DS)
 
96
#define X_NOT_POSIX
 
97
#endif
 
98
#define X_NOT_STDC_ENV
 
99
#endif
 
100
#endif
 
101
#endif
 
102
 
 
103
#ifdef MOTOROLA
 
104
#ifdef SYSV
 
105
#define X_NOT_STDC_ENV
 
106
#endif
 
107
#endif
 
108
 
 
109
#ifdef sun
 
110
/* 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
#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
#endif
 
132
 
 
133
#ifdef __UNIXOS2__
 
134
#define USGISH
 
135
#define NULL_NOT_ZERO
 
136
#endif
 
137
 
 
138
#ifdef __DARWIN__
 
139
#define NULL_NOT_ZERO
 
140
#endif
 
141
 
 
142
#ifdef __GNU__
 
143
#ifndef PATH_MAX
 
144
#define PATH_MAX 4096
 
145
#endif
 
146
#ifndef MAXPATHLEN
 
147
#define MAXPATHLEN 4096
 
148
#endif
 
149
#endif
 
150
#endif /* _XOSDEFS_H_ */
 
151