Back to index

lightning-sunbird  0.9+nobinonly
prosdep.h
Go to the documentation of this file.
00001 /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
00002 /* ***** BEGIN LICENSE BLOCK *****
00003  * Version: MPL 1.1/GPL 2.0/LGPL 2.1
00004  *
00005  * The contents of this file are subject to the Mozilla Public License Version
00006  * 1.1 (the "License"); you may not use this file except in compliance with
00007  * the License. You may obtain a copy of the License at
00008  * http://www.mozilla.org/MPL/
00009  *
00010  * Software distributed under the License is distributed on an "AS IS" basis,
00011  * WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License
00012  * for the specific language governing rights and limitations under the
00013  * License.
00014  *
00015  * The Original Code is the Netscape Portable Runtime (NSPR).
00016  *
00017  * The Initial Developer of the Original Code is
00018  * Netscape Communications Corporation.
00019  * Portions created by the Initial Developer are Copyright (C) 1998-2000
00020  * the Initial Developer. All Rights Reserved.
00021  *
00022  * Contributor(s):
00023  *
00024  * Alternatively, the contents of this file may be used under the terms of
00025  * either the GNU General Public License Version 2 or later (the "GPL"), or
00026  * the GNU Lesser General Public License Version 2.1 or later (the "LGPL"),
00027  * in which case the provisions of the GPL or the LGPL are applicable instead
00028  * of those above. If you wish to allow use of your version of this file only
00029  * under the terms of either the GPL or the LGPL, and not to allow others to
00030  * use your version of this file under the terms of the MPL, indicate your
00031  * decision by deleting the provisions above and replace them with the notice
00032  * and other provisions required by the GPL or the LGPL. If you do not delete
00033  * the provisions above, a recipient may use your version of this file under
00034  * the terms of any one of the MPL, the GPL or the LGPL.
00035  *
00036  * ***** END LICENSE BLOCK ***** */
00037 
00038 #ifndef prosdep_h___
00039 #define prosdep_h___
00040 
00041 /*
00042 ** Get OS specific header information
00043 */
00044 #include "prtypes.h"
00045 
00046 PR_BEGIN_EXTERN_C
00047 
00048 #ifdef XP_PC
00049 
00050 #include "md/_pcos.h"
00051 #ifdef WINNT
00052 #include "md/_winnt.h"
00053 #include "md/_win32_errors.h"
00054 #elif defined(WIN95)
00055 #include "md/_win95.h"
00056 #include "md/_win32_errors.h"
00057 #elif defined(WIN16)
00058 #include "md/_win16.h"
00059 #elif defined(OS2)
00060 #include "md/_os2.h"
00061 #include "md/_os2_errors.h"
00062 #else
00063 #error unknown Windows platform
00064 #endif
00065 
00066 #elif defined XP_MAC
00067 
00068 #include "_macos.h"
00069 
00070 #elif defined(XP_UNIX)
00071 
00072 #if defined(AIX)
00073 #include "md/_aix.h"
00074 
00075 #elif defined(FREEBSD)
00076 #include "md/_freebsd.h"
00077 
00078 #elif defined(NETBSD)
00079 #include "md/_netbsd.h"
00080 
00081 #elif defined(OPENBSD)
00082 #include "md/_openbsd.h"
00083 
00084 #elif defined(BSDI)
00085 #include "md/_bsdi.h"
00086 
00087 #elif defined(HPUX)
00088 #include "md/_hpux.h"
00089 
00090 #elif defined(IRIX)
00091 #include "md/_irix.h"
00092 
00093 #elif defined(LINUX)
00094 #include "md/_linux.h"
00095 
00096 #elif defined(OSF1)
00097 #include "md/_osf1.h"
00098 
00099 #elif defined(DARWIN)
00100 #include "md/_darwin.h"
00101 
00102 #elif defined(NEXTSTEP)
00103 #include "md/_nextstep.h"
00104 
00105 #elif defined(SOLARIS)
00106 #include "md/_solaris.h"
00107 
00108 #elif defined(SUNOS4)
00109 #include "md/_sunos4.h"
00110 
00111 #elif defined(SNI)
00112 #include "md/_reliantunix.h"
00113 
00114 #elif defined(SONY)
00115 #include "md/_sony.h"
00116 
00117 #elif defined(NEC)
00118 #include "md/_nec.h"
00119 
00120 #elif defined(SCO)
00121 #include "md/_scoos.h"
00122 
00123 #elif defined(UNIXWARE)
00124 #include "md/_unixware.h"
00125 
00126 #elif defined(NCR)
00127 #include "md/_ncr.h"
00128 
00129 #elif defined(DGUX)
00130 #include "md/_dgux.h"
00131 
00132 #elif defined(QNX)
00133 #include "md/_qnx.h"
00134 
00135 #elif defined(VMS)
00136 #include "md/_openvms.h"
00137 
00138 #elif defined(NTO)
00139 #include "md/_nto.h"
00140 
00141 #elif defined(RISCOS)
00142 #include "md/_riscos.h"
00143 
00144 #else
00145 #error unknown Unix flavor
00146 
00147 #endif
00148 
00149 #include "md/_unixos.h"
00150 #include "md/_unix_errors.h"
00151 
00152 #elif defined(XP_BEOS)
00153 
00154 #include "md/_beos.h"
00155 #include "md/_unix_errors.h"
00156 
00157 #else
00158 
00159 #error "The platform is not BeOS, Unix, Windows, or Mac"
00160 
00161 #endif
00162 
00163 #ifdef _PR_PTHREADS
00164 #include "md/_pth.h"
00165 #endif
00166 
00167 PR_END_EXTERN_C
00168 
00169 #endif /* prosdep_h___ */