prosdep.h 1.6 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697
  1. /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
  2. /* This Source Code Form is subject to the terms of the Mozilla Public
  3. * License, v. 2.0. If a copy of the MPL was not distributed with this
  4. * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
  5. #ifndef prosdep_h___
  6. #define prosdep_h___
  7. /*
  8. ** Get OS specific header information
  9. */
  10. #include "prtypes.h"
  11. PR_BEGIN_EXTERN_C
  12. #ifdef XP_PC
  13. #include "md/_pcos.h"
  14. #ifdef WINNT
  15. #include "md/_winnt.h"
  16. #include "md/_win32_errors.h"
  17. #elif defined(WIN95) || defined(WINCE)
  18. #include "md/_win95.h"
  19. #include "md/_win32_errors.h"
  20. #elif defined(OS2)
  21. #include "md/_os2.h"
  22. #include "md/_os2_errors.h"
  23. #else
  24. #error unknown Windows platform
  25. #endif
  26. #elif defined(XP_UNIX)
  27. #if defined(AIX)
  28. #include "md/_aix.h"
  29. #elif defined(FREEBSD)
  30. #include "md/_freebsd.h"
  31. #elif defined(NETBSD)
  32. #include "md/_netbsd.h"
  33. #elif defined(OPENBSD)
  34. #include "md/_openbsd.h"
  35. #elif defined(BSDI)
  36. #include "md/_bsdi.h"
  37. #elif defined(HPUX)
  38. #include "md/_hpux.h"
  39. #elif defined(LINUX) || defined(__GNU__) || defined(__GLIBC__)
  40. #include "md/_linux.h"
  41. #elif defined(DARWIN)
  42. #include "md/_darwin.h"
  43. #elif defined(SOLARIS)
  44. #include "md/_solaris.h"
  45. #elif defined(SCO)
  46. #include "md/_scoos.h"
  47. #elif defined(UNIXWARE)
  48. #include "md/_unixware.h"
  49. #elif defined(QNX)
  50. #include "md/_qnx.h"
  51. #elif defined(NTO)
  52. #include "md/_nto.h"
  53. #elif defined(RISCOS)
  54. #include "md/_riscos.h"
  55. #else
  56. #error unknown Unix flavor
  57. #endif
  58. #include "md/_unixos.h"
  59. #include "md/_unix_errors.h"
  60. #else
  61. #error "The platform is not Unix, Windows, or Mac"
  62. #endif
  63. #ifdef _PR_PTHREADS
  64. #include "md/_pth.h"
  65. #endif
  66. PR_END_EXTERN_C
  67. #endif /* prosdep_h___ */