home *** CD-ROM | disk | FTP | other *** search
/ Personal Computer World 2009 February / PCWFEB09.iso / Software / Linux / SLAX 6.0.8 / slax-6.0.8.iso / slax / base / 006-devel.lzm / usr / include / X11 / Xosdefs.h < prev    next >
Encoding:
C/C++ Source or Header  |  2008-09-17  |  4.1 KB  |  177 lines

  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. #endif
  88.  
  89. #ifdef __i386__
  90. #ifdef SYSV
  91. #if !defined(ISC) && !defined(__SCO__) && !defined(_SEQUENT_) && \
  92.     !defined(__UNIXWARE__) && !defined(sun)
  93. #if !defined(_POSIX_SOURCE)
  94. #define X_NOT_POSIX
  95. #endif
  96. #define X_NOT_STDC_ENV
  97. #endif
  98. #endif
  99. #endif
  100.  
  101. #ifdef MOTOROLA
  102. #ifdef SYSV
  103. #define X_NOT_STDC_ENV
  104. #endif
  105. #endif
  106.  
  107. #ifdef sun
  108. /* Imake configs define SVR4 on Solaris, but cc & gcc only define __SVR4
  109.  * This check allows non-Imake configured programs to build correctly.
  110.  */
  111. #if defined(__SVR4) && !defined(SVR4)
  112. #define SVR4 1
  113. #endif
  114. #ifdef SVR4
  115. /* define this to whatever it needs to be */
  116. #define X_POSIX_C_SOURCE 199300L
  117. #endif
  118. #endif
  119.  
  120. #ifdef WIN32
  121. #ifndef _POSIX_
  122. #define X_NOT_POSIX
  123. #endif
  124. #endif
  125.  
  126. #if defined(nec_ews_svr2) || defined(SX) || defined(PC_UX)
  127. #define X_NOT_POSIX
  128. #define X_NOT_STDC_ENV
  129. #endif
  130.  
  131. #ifdef __UNIXOS2__
  132. #define USGISH
  133. #define NULL_NOT_ZERO
  134. #endif
  135.  
  136. #ifdef __APPLE__
  137. #define NULL_NOT_ZERO
  138.  
  139. /* Defining any of these will sanitize the namespace to JUST want is defined by
  140.  * that particular standard.  If that happens, we don't get some expected
  141.  * prototypes, typedefs, etc (like fd_mask).  We can define _DARWIN_C_SOURCE to
  142.  * loosen our belts a tad.
  143.  */
  144. #if defined(_XOPEN_SOURCE) || defined(_POSIX_SOURCE) || defined(_POSIX_C_SOURCE)
  145. #define _DARWIN_C_SOURCE
  146. #endif
  147.  
  148. #endif
  149.  
  150. #ifdef __GNU__
  151. #ifndef PATH_MAX
  152. #define PATH_MAX 4096
  153. #endif
  154. #ifndef MAXPATHLEN
  155. #define MAXPATHLEN 4096
  156. #endif
  157. #endif
  158.  
  159. #if defined(__SCO__) || defined(__UNIXWARE__)
  160. # ifndef PATH_MAX
  161. #  define PATH_MAX    1024
  162. # endif
  163. # ifndef MAXPATHLEN
  164. #  define MAXPATHLEN    1024
  165. # endif
  166. #endif
  167.  
  168. #if defined(__OpenBSD__) || defined(__NetBSD__) || defined(__FreeBSD__) \
  169.     || defined(__APPLE__) || defined(__DragonFly__)
  170. # ifndef CSRG_BASED
  171. #  define CSRG_BASED
  172. # endif
  173. #endif
  174.  
  175. #endif /* _XOSDEFS_H_ */
  176.  
  177.