prosdep.h (1429B)
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 6 #ifndef prosdep_h___ 7 #define prosdep_h___ 8 9 /* 10 ** Get OS specific header information 11 */ 12 #include "prtypes.h" 13 14 PR_BEGIN_EXTERN_C 15 16 #ifdef XP_PC 17 18 #include "md/_pcos.h" 19 #ifdef WINNT 20 #include "md/_winnt.h" 21 #include "md/_win32_errors.h" 22 #elif defined(WIN95) || defined(WINCE) 23 #include "md/_win95.h" 24 #include "md/_win32_errors.h" 25 #else 26 #error unknown Windows platform 27 #endif 28 29 #elif defined(XP_UNIX) 30 31 #if defined(AIX) 32 #include "md/_aix.h" 33 34 #elif defined(FREEBSD) 35 #include "md/_freebsd.h" 36 37 #elif defined(NETBSD) 38 #include "md/_netbsd.h" 39 40 #elif defined(OPENBSD) 41 #include "md/_openbsd.h" 42 43 #elif defined(LINUX) || defined(__GNU__) || defined(__GLIBC__) 44 #include "md/_linux.h" 45 46 #elif defined(DARWIN) 47 #include "md/_darwin.h" 48 49 #elif defined(SOLARIS) 50 #include "md/_solaris.h" 51 52 #elif defined(QNX) 53 #include "md/_qnx.h" 54 55 #elif defined(NTO) 56 #include "md/_nto.h" 57 58 #elif defined(RISCOS) 59 #include "md/_riscos.h" 60 61 #else 62 #error unknown Unix flavor 63 64 #endif 65 66 #include "md/_unixos.h" 67 #include "md/_unix_errors.h" 68 69 #else 70 71 #error "The platform is not Unix, Windows, or Mac" 72 73 #endif 74 75 #ifdef _PR_PTHREADS 76 #include "md/_pth.h" 77 #endif 78 79 PR_END_EXTERN_C 80 81 #endif /* prosdep_h___ */