blob: 162c83afc2cff590c96ec2dd9d89cafd7bf8ec39 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
|
/*
* Replacement getopt function's header file. Include this AFTER config.h.
*
* Copyright 2012 Andrew Wood, distributed under the Artistic License 2.0.
*/
#ifndef _LIBRARY_GETOPT_H
#define _LIBRARY_GETOPT_H 1
#ifdef HAVE_GETOPT_H
#include <getopt.h>
#endif
#ifdef __cplusplus
extern "C" {
#endif
#ifndef HAVE_GETOPT
int minigetopt(int, char **, char *);
extern char *minioptarg;
extern int minioptind, miniopterr, minioptopt;
#define getopt minigetopt /* Flawfinder: ignore */
#define optarg minioptarg
#define optind minioptind
#define opterr miniopterr
#define optopt minioptopt
#endif /* !HAVE_GETOPT */
#ifdef __cplusplus
}
#endif
#endif /* _LIBRARY_GETOPT_H */
/* EOF */
|