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