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