mirror of
https://github.com/reactos/reactos.git
synced 2024-10-23 22:40:47 +00:00
Temporary getopt.h. MingW doesn't define getopt() anywhere, but ships with libiberty, that implements it. This file temporarily fills the gap
svn path=/trunk/; revision=3519
This commit is contained in:
parent
b3aca5f5cc
commit
c14f0762b7
53
reactos/include/getopt.h
Normal file
53
reactos/include/getopt.h
Normal file
|
@ -0,0 +1,53 @@
|
||||||
|
/* temporary header for getopt. Please remove this file when MingW ships with
|
||||||
|
its own */
|
||||||
|
|
||||||
|
#ifndef __GETOPT_H_INCLUDED
|
||||||
|
#define __GETOPT_H_INCLUDED
|
||||||
|
|
||||||
|
#ifdef __cplusplus
|
||||||
|
extern "C"
|
||||||
|
{
|
||||||
|
#endif
|
||||||
|
|
||||||
|
extern char *optarg;
|
||||||
|
extern int optind, opterr, optopt;
|
||||||
|
|
||||||
|
#define no_argument (0)
|
||||||
|
#define required_argument (1)
|
||||||
|
#define optional_argument (2)
|
||||||
|
|
||||||
|
struct option
|
||||||
|
{
|
||||||
|
const char *name;
|
||||||
|
int has_arg;
|
||||||
|
int *flag;
|
||||||
|
int val;
|
||||||
|
};
|
||||||
|
|
||||||
|
extern int getopt(int, char * const [], const char *);
|
||||||
|
|
||||||
|
extern int getopt_long
|
||||||
|
(
|
||||||
|
int,
|
||||||
|
char * const [],
|
||||||
|
const char *,
|
||||||
|
const struct option *,
|
||||||
|
int *
|
||||||
|
);
|
||||||
|
|
||||||
|
extern int getopt_long_only
|
||||||
|
(
|
||||||
|
int,
|
||||||
|
char * const [],
|
||||||
|
const char *,
|
||||||
|
const struct option *,
|
||||||
|
int *
|
||||||
|
);
|
||||||
|
|
||||||
|
#ifdef __cplusplus
|
||||||
|
}
|
||||||
|
#endif
|
||||||
|
|
||||||
|
#endif /* __GETOPT_H_INCLUDED */
|
||||||
|
|
||||||
|
/* EOF */
|
Loading…
Reference in a new issue