Xosdefs.h

Go to the documentation of this file.
00001 /*
00002  * O/S-dependent (mis)feature macro definitions
00003  *
00004  * $XConsortium: Xosdefs.h,v 1.14 94/11/30 20:48:05 kaleb Exp $
00005  * $XFree86: xc/include/Xosdefs.h,v 3.7 1995/01/28 15:42:05 dawes Exp $
00006  *
00007 Copyright (c) 1991  X Consortium
00008 
00009 Permission is hereby granted, free of charge, to any person obtaining a copy
00010 of this software and associated documentation files (the "Software"), to deal
00011 in the Software without restriction, including without limitation the rights
00012 to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
00013 copies of the Software, and to permit persons to whom the Software is
00014 furnished to do so, subject to the following conditions:
00015 
00016 The above copyright notice and this permission notice shall be included in
00017 all copies or substantial portions of the Software.
00018 
00019 THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
00020 IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
00021 FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.  IN NO EVENT SHALL THE
00022 X CONSORTIUM BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN
00023 AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
00024 CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
00025 
00026 Except as contained in this notice, the name of the X Consortium shall not be
00027 used in advertising or otherwise to promote the sale, use or other dealings
00028 in this Software without prior written authorization from the X Consortium.
00029  */
00030 
00031 #ifndef _XOSDEFS_H_
00032 #define _XOSDEFS_H_
00033 
00034 /*
00035  * X_NOT_STDC_ENV means does not have ANSI C header files.  Lack of this
00036  * symbol does NOT mean that the system has stdarg.h.
00037  *
00038  * X_NOT_POSIX means does not have POSIX header files.  Lack of this
00039  * symbol does NOT mean that the POSIX environment is the default.
00040  * You may still have to define _POSIX_SOURCE to get it.
00041  */
00042 
00043 #ifdef NOSTDHDRS
00044 #define X_NOT_POSIX
00045 #define X_NOT_STDC_ENV
00046 #endif
00047 
00048 #ifdef sony
00049 #if !defined(SYSTYPE_SYSV) && !defined(_SYSTYPE_SYSV)
00050 #define X_NOT_POSIX
00051 #endif
00052 #endif
00053 
00054 #ifdef UTEK
00055 #define X_NOT_POSIX
00056 #define X_NOT_STDC_ENV
00057 #endif
00058 
00059 #ifdef vax
00060 #ifndef ultrix      /* assume vanilla BSD */
00061 #define X_NOT_POSIX
00062 #define X_NOT_STDC_ENV
00063 #endif
00064 #endif
00065 
00066 #ifdef luna
00067 #define X_NOT_POSIX
00068 #define X_NOT_STDC_ENV
00069 #endif
00070 
00071 #ifdef Mips
00072 #define X_NOT_POSIX
00073 #define X_NOT_STDC_ENV
00074 #endif
00075   
00076 #ifdef USL
00077 #ifdef SYSV /* (release 3.2) */
00078 #define X_NOT_POSIX
00079 #define X_NOT_STDC_ENV
00080 #endif
00081 #endif
00082 
00083 #ifdef i386
00084 #ifdef SYSV
00085 #ifndef SCO
00086 #define X_NOT_POSIX
00087 #endif
00088 #define X_NOT_STDC_ENV
00089 #endif
00090 #endif
00091 
00092 #ifdef MOTOROLA
00093 #ifdef SYSV
00094 #define X_NOT_STDC_ENV
00095 #endif
00096 #endif
00097 
00098 #ifdef sun
00099 #ifdef SVR4
00100 /* define this to whatever it needs to be */
00101 #define X_POSIX_C_SOURCE 199300L
00102 #endif
00103 #endif
00104 
00105 #ifdef WIN32
00106 #ifndef _POSIX_
00107 #define X_NOT_POSIX
00108 #endif
00109 #endif
00110 
00111 #ifdef __OS2__
00112 #ifndef _POSIX_
00113 #define X_NOT_POSIX
00114 #endif
00115 #endif
00116 
00117 #if defined(nec_ews_svr2) || defined(SX) || defined(PC_UX)
00118 #define X_NOT_POSIX
00119 #define X_NOT_STDC_ENV
00120 #endif
00121 
00122 #ifdef __EMX__
00123 #define USGISH
00124 #endif
00125 
00126 #endif /* _XOSDEFS_H_ */

Generated on Fri Nov 28 04:28:50 2008 for HOOPLE Libraries by  doxygen 1.5.1