prosdep.h 3.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169
  1. /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
  2. /* ***** BEGIN LICENSE BLOCK *****
  3. * Version: MPL 1.1/GPL 2.0/LGPL 2.1
  4. *
  5. * The contents of this file are subject to the Mozilla Public License Version
  6. * 1.1 (the "License"); you may not use this file except in compliance with
  7. * the License. You may obtain a copy of the License at
  8. * http://www.mozilla.org/MPL/
  9. *
  10. * Software distributed under the License is distributed on an "AS IS" basis,
  11. * WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License
  12. * for the specific language governing rights and limitations under the
  13. * License.
  14. *
  15. * The Original Code is the Netscape Portable Runtime (NSPR).
  16. *
  17. * The Initial Developer of the Original Code is
  18. * Netscape Communications Corporation.
  19. * Portions created by the Initial Developer are Copyright (C) 1998-2000
  20. * the Initial Developer. All Rights Reserved.
  21. *
  22. * Contributor(s):
  23. *
  24. * Alternatively, the contents of this file may be used under the terms of
  25. * either the GNU General Public License Version 2 or later (the "GPL"), or
  26. * the GNU Lesser General Public License Version 2.1 or later (the "LGPL"),
  27. * in which case the provisions of the GPL or the LGPL are applicable instead
  28. * of those above. If you wish to allow use of your version of this file only
  29. * under the terms of either the GPL or the LGPL, and not to allow others to
  30. * use your version of this file under the terms of the MPL, indicate your
  31. * decision by deleting the provisions above and replace them with the notice
  32. * and other provisions required by the GPL or the LGPL. If you do not delete
  33. * the provisions above, a recipient may use your version of this file under
  34. * the terms of any one of the MPL, the GPL or the LGPL.
  35. *
  36. * ***** END LICENSE BLOCK ***** */
  37. #ifndef prosdep_h___
  38. #define prosdep_h___
  39. /*
  40. ** Get OS specific header information
  41. */
  42. #include "prtypes.h"
  43. PR_BEGIN_EXTERN_C
  44. #ifdef XP_PC
  45. #include "md/_pcos.h"
  46. #ifdef WINNT
  47. #include "md/_winnt.h"
  48. #include "md/_win32_errors.h"
  49. #elif defined(WIN95)
  50. #include "md/_win95.h"
  51. #include "md/_win32_errors.h"
  52. #elif defined(WIN16)
  53. #include "md/_win16.h"
  54. #elif defined(OS2)
  55. #include "md/_os2.h"
  56. #include "md/_os2_errors.h"
  57. #else
  58. #error unknown Windows platform
  59. #endif
  60. #elif defined XP_MAC
  61. #include "_macos.h"
  62. #elif defined(XP_UNIX)
  63. #if defined(AIX)
  64. #include "md/_aix.h"
  65. #elif defined(FREEBSD)
  66. #include "md/_freebsd.h"
  67. #elif defined(NETBSD)
  68. #include "md/_netbsd.h"
  69. #elif defined(OPENBSD)
  70. #include "md/_openbsd.h"
  71. #elif defined(BSDI)
  72. #include "md/_bsdi.h"
  73. #elif defined(HPUX)
  74. #include "md/_hpux.h"
  75. #elif defined(IRIX)
  76. #include "md/_irix.h"
  77. #elif defined(LINUX)
  78. #include "md/_linux.h"
  79. #elif defined(OSF1)
  80. #include "md/_osf1.h"
  81. #elif defined(DARWIN)
  82. #include "md/_darwin.h"
  83. #elif defined(NEXTSTEP)
  84. #include "md/_nextstep.h"
  85. #elif defined(SOLARIS)
  86. #include "md/_solaris.h"
  87. #elif defined(SUNOS4)
  88. #include "md/_sunos4.h"
  89. #elif defined(SNI)
  90. #include "md/_reliantunix.h"
  91. #elif defined(SONY)
  92. #include "md/_sony.h"
  93. #elif defined(NEC)
  94. #include "md/_nec.h"
  95. #elif defined(SCO)
  96. #include "md/_scoos.h"
  97. #elif defined(UNIXWARE)
  98. #include "md/_unixware.h"
  99. #elif defined(NCR)
  100. #include "md/_ncr.h"
  101. #elif defined(DGUX)
  102. #include "md/_dgux.h"
  103. #elif defined(QNX)
  104. #include "md/_qnx.h"
  105. #elif defined(VMS)
  106. #include "md/_openvms.h"
  107. #elif defined(NTO)
  108. #include "md/_nto.h"
  109. #elif defined(RISCOS)
  110. #include "md/_riscos.h"
  111. #else
  112. #error unknown Unix flavor
  113. #endif
  114. #include "md/_unixos.h"
  115. #include "md/_unix_errors.h"
  116. #elif defined(XP_BEOS)
  117. #include "md/_beos.h"
  118. #include "md/_unix_errors.h"
  119. #else
  120. #error "The platform is not BeOS, Unix, Windows, or Mac"
  121. #endif
  122. #ifdef _PR_PTHREADS
  123. #include "md/_pth.h"
  124. #endif
  125. PR_END_EXTERN_C
  126. #endif /* prosdep_h___ */