nsprpub/pr/include/md/_pcos.h

changeset 0
6474c204b198
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/nsprpub/pr/include/md/_pcos.h	Wed Dec 31 06:09:35 2014 +0100
     1.3 @@ -0,0 +1,51 @@
     1.4 +/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
     1.5 +/* This Source Code Form is subject to the terms of the Mozilla Public
     1.6 + * License, v. 2.0. If a copy of the MPL was not distributed with this
     1.7 + * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
     1.8 +
     1.9 +#ifndef prpcos_h___
    1.10 +#define prpcos_h___
    1.11 +
    1.12 +#define PR_DLL_SUFFIX		".dll"
    1.13 +
    1.14 +#include <stdlib.h>
    1.15 +
    1.16 +#define DIRECTORY_SEPARATOR         '\\'
    1.17 +#define DIRECTORY_SEPARATOR_STR     "\\"
    1.18 +#define PATH_SEPARATOR              ';'
    1.19 +
    1.20 +/*
    1.21 +** Routines for processing command line arguments
    1.22 +*/
    1.23 +PR_BEGIN_EXTERN_C
    1.24 +#ifndef XP_OS2
    1.25 +extern char *optarg;
    1.26 +extern int optind;
    1.27 +extern int getopt(int argc, char **argv, char *spec);
    1.28 +#endif
    1.29 +PR_END_EXTERN_C
    1.30 +
    1.31 +
    1.32 +/*
    1.33 +** Definitions of directory structures amd functions
    1.34 +** These definitions are from:
    1.35 +**      <dirent.h>
    1.36 +*/
    1.37 +#ifdef XP_OS2
    1.38 +#include <sys/types.h>
    1.39 +#endif
    1.40 +#include <sys/stat.h>
    1.41 +#include <io.h>
    1.42 +#include <fcntl.h>          /* O_BINARY */
    1.43 +
    1.44 +#ifdef OS2
    1.45 +extern PRStatus _MD_OS2GetHostName(char *name, PRUint32 namelen);
    1.46 +#define _MD_GETHOSTNAME _MD_OS2GetHostName
    1.47 +#else
    1.48 +extern PRStatus _MD_WindowsGetHostName(char *name, PRUint32 namelen);
    1.49 +#define _MD_GETHOSTNAME _MD_WindowsGetHostName
    1.50 +extern PRStatus _MD_WindowsGetSysInfo(PRSysInfo cmd, char *name, PRUint32 namelen);
    1.51 +#define _MD_GETSYSINFO _MD_WindowsGetSysInfo
    1.52 +#endif
    1.53 +
    1.54 +#endif /* prpcos_h___ */

mercurial