michael@0: /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ michael@0: /* This Source Code Form is subject to the terms of the Mozilla Public michael@0: * License, v. 2.0. If a copy of the MPL was not distributed with this michael@0: * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ michael@0: michael@0: #ifndef prpcos_h___ michael@0: #define prpcos_h___ michael@0: michael@0: #define PR_DLL_SUFFIX ".dll" michael@0: michael@0: #include michael@0: michael@0: #define DIRECTORY_SEPARATOR '\\' michael@0: #define DIRECTORY_SEPARATOR_STR "\\" michael@0: #define PATH_SEPARATOR ';' michael@0: michael@0: /* michael@0: ** Routines for processing command line arguments michael@0: */ michael@0: PR_BEGIN_EXTERN_C michael@0: #ifndef XP_OS2 michael@0: extern char *optarg; michael@0: extern int optind; michael@0: extern int getopt(int argc, char **argv, char *spec); michael@0: #endif michael@0: PR_END_EXTERN_C michael@0: michael@0: michael@0: /* michael@0: ** Definitions of directory structures amd functions michael@0: ** These definitions are from: michael@0: ** michael@0: */ michael@0: #ifdef XP_OS2 michael@0: #include michael@0: #endif michael@0: #include michael@0: #include michael@0: #include /* O_BINARY */ michael@0: michael@0: #ifdef OS2 michael@0: extern PRStatus _MD_OS2GetHostName(char *name, PRUint32 namelen); michael@0: #define _MD_GETHOSTNAME _MD_OS2GetHostName michael@0: #else michael@0: extern PRStatus _MD_WindowsGetHostName(char *name, PRUint32 namelen); michael@0: #define _MD_GETHOSTNAME _MD_WindowsGetHostName michael@0: extern PRStatus _MD_WindowsGetSysInfo(PRSysInfo cmd, char *name, PRUint32 namelen); michael@0: #define _MD_GETSYSINFO _MD_WindowsGetSysInfo michael@0: #endif michael@0: michael@0: #endif /* prpcos_h___ */