home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: 10 Tools / 10-Tools.zip / mdepsrc.zip / Xosdefs.h < prev    next >
C/C++ Source or Header  |  1996-12-10  |  3KB  |  127 lines

  1. /*
  2.  * O/S-dependent (mis)feature macro definitions
  3.  *
  4.  * $XConsortium: Xosdefs.h,v 1.14 94/11/30 20:48:05 kaleb Exp $
  5.  * $XFree86: xc/include/Xosdefs.h,v 3.7 1995/01/28 15:42:05 dawes Exp $
  6.  *
  7. Copyright (c) 1991  X Consortium
  8.  
  9. Permission is hereby granted, free of charge, to any person obtaining a copy
  10. of this software and associated documentation files (the "Software"), to deal
  11. in the Software without restriction, including without limitation the rights
  12. to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
  13. copies of the Software, and to permit persons to whom the Software is
  14. furnished to do so, subject to the following conditions:
  15.  
  16. The above copyright notice and this permission notice shall be included in
  17. all copies or substantial portions of the Software.
  18.  
  19. THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
  20. IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
  21. FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.  IN NO EVENT SHALL THE
  22. X CONSORTIUM BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN
  23. AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
  24. CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
  25.  
  26. Except as contained in this notice, the name of the X Consortium shall not be
  27. used in advertising or otherwise to promote the sale, use or other dealings
  28. in this Software without prior written authorization from the X Consortium.
  29.  */
  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 i386
  84. #ifdef SYSV
  85. #ifndef SCO
  86. #define X_NOT_POSIX
  87. #endif
  88. #define X_NOT_STDC_ENV
  89. #endif
  90. #endif
  91.  
  92. #ifdef MOTOROLA
  93. #ifdef SYSV
  94. #define X_NOT_STDC_ENV
  95. #endif
  96. #endif
  97.  
  98. #ifdef sun
  99. #ifdef SVR4
  100. /* define this to whatever it needs to be */
  101. #define X_POSIX_C_SOURCE 199300L
  102. #endif
  103. #endif
  104.  
  105. #ifdef WIN32
  106. #ifndef _POSIX_
  107. #define X_NOT_POSIX
  108. #endif
  109. #endif
  110.  
  111. #ifdef __OS2__
  112. #ifndef _POSIX_
  113. #define X_NOT_POSIX
  114. #endif
  115. #endif
  116.  
  117. #if defined(nec_ews_svr2) || defined(SX) || defined(PC_UX)
  118. #define X_NOT_POSIX
  119. #define X_NOT_STDC_ENV
  120. #endif
  121.  
  122. #ifdef __EMX__
  123. #define USGISH
  124. #endif
  125.  
  126. #endif /* _XOSDEFS_H_ */
  127.