nsprpub/pr/include/md/prosdep.h

Fri, 16 Jan 2015 18:13:44 +0100

author
Michael Schloh von Bennewitz <michael@schloh.com>
date
Fri, 16 Jan 2015 18:13:44 +0100
branch
TOR_BUG_9701
changeset 14
925c144e1f1f
permissions
-rw-r--r--

Integrate suggestion from review to improve consistency with existing code.

michael@0 1 /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
michael@0 2 /* This Source Code Form is subject to the terms of the Mozilla Public
michael@0 3 * License, v. 2.0. If a copy of the MPL was not distributed with this
michael@0 4 * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
michael@0 5
michael@0 6 #ifndef prosdep_h___
michael@0 7 #define prosdep_h___
michael@0 8
michael@0 9 /*
michael@0 10 ** Get OS specific header information
michael@0 11 */
michael@0 12 #include "prtypes.h"
michael@0 13
michael@0 14 PR_BEGIN_EXTERN_C
michael@0 15
michael@0 16 #ifdef XP_PC
michael@0 17
michael@0 18 #include "md/_pcos.h"
michael@0 19 #ifdef WINNT
michael@0 20 #include "md/_winnt.h"
michael@0 21 #include "md/_win32_errors.h"
michael@0 22 #elif defined(WIN95) || defined(WINCE)
michael@0 23 #include "md/_win95.h"
michael@0 24 #include "md/_win32_errors.h"
michael@0 25 #elif defined(OS2)
michael@0 26 #include "md/_os2.h"
michael@0 27 #include "md/_os2_errors.h"
michael@0 28 #else
michael@0 29 #error unknown Windows platform
michael@0 30 #endif
michael@0 31
michael@0 32 #elif defined(XP_UNIX)
michael@0 33
michael@0 34 #if defined(AIX)
michael@0 35 #include "md/_aix.h"
michael@0 36
michael@0 37 #elif defined(FREEBSD)
michael@0 38 #include "md/_freebsd.h"
michael@0 39
michael@0 40 #elif defined(NETBSD)
michael@0 41 #include "md/_netbsd.h"
michael@0 42
michael@0 43 #elif defined(OPENBSD)
michael@0 44 #include "md/_openbsd.h"
michael@0 45
michael@0 46 #elif defined(BSDI)
michael@0 47 #include "md/_bsdi.h"
michael@0 48
michael@0 49 #elif defined(HPUX)
michael@0 50 #include "md/_hpux.h"
michael@0 51
michael@0 52 #elif defined(IRIX)
michael@0 53 #include "md/_irix.h"
michael@0 54
michael@0 55 #elif defined(LINUX) || defined(__GNU__) || defined(__GLIBC__)
michael@0 56 #include "md/_linux.h"
michael@0 57
michael@0 58 #elif defined(OSF1)
michael@0 59 #include "md/_osf1.h"
michael@0 60
michael@0 61 #elif defined(DARWIN)
michael@0 62 #include "md/_darwin.h"
michael@0 63
michael@0 64 #elif defined(SOLARIS)
michael@0 65 #include "md/_solaris.h"
michael@0 66
michael@0 67 #elif defined(SCO)
michael@0 68 #include "md/_scoos.h"
michael@0 69
michael@0 70 #elif defined(UNIXWARE)
michael@0 71 #include "md/_unixware.h"
michael@0 72
michael@0 73 #elif defined(DGUX)
michael@0 74 #include "md/_dgux.h"
michael@0 75
michael@0 76 #elif defined(QNX)
michael@0 77 #include "md/_qnx.h"
michael@0 78
michael@0 79 #elif defined(NTO)
michael@0 80 #include "md/_nto.h"
michael@0 81
michael@0 82 #elif defined(RISCOS)
michael@0 83 #include "md/_riscos.h"
michael@0 84
michael@0 85 #elif defined(SYMBIAN)
michael@0 86 #include "md/_symbian.h"
michael@0 87
michael@0 88 #else
michael@0 89 #error unknown Unix flavor
michael@0 90
michael@0 91 #endif
michael@0 92
michael@0 93 #include "md/_unixos.h"
michael@0 94 #include "md/_unix_errors.h"
michael@0 95
michael@0 96 #elif defined(XP_BEOS)
michael@0 97
michael@0 98 #include "md/_beos.h"
michael@0 99 #include "md/_unix_errors.h"
michael@0 100
michael@0 101 #else
michael@0 102
michael@0 103 #error "The platform is not BeOS, Unix, Windows, or Mac"
michael@0 104
michael@0 105 #endif
michael@0 106
michael@0 107 #ifdef _PR_PTHREADS
michael@0 108 #include "md/_pth.h"
michael@0 109 #endif
michael@0 110
michael@0 111 PR_END_EXTERN_C
michael@0 112
michael@0 113 #endif /* prosdep_h___ */

mercurial