2023-07-03 02:57:43 +00:00
|
|
|
#ifndef COSMOPOLITAN_GETOPT_H_
|
|
|
|
#define COSMOPOLITAN_GETOPT_H_
|
2023-08-16 02:24:21 +00:00
|
|
|
#if defined(_GETOPT_CORE_H) || defined(_GETOPT_EXT_H)
|
2023-07-03 02:57:43 +00:00
|
|
|
#error "don't mix getopt_long() with cosmo's getopt()"
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#define optarg __optarg
|
|
|
|
#define optind __optind
|
|
|
|
#define opterr __opterr
|
|
|
|
#define optopt __optopt
|
|
|
|
#define optreset __optreset
|
|
|
|
#define getopt __getopt
|
|
|
|
|
|
|
|
COSMOPOLITAN_C_START_
|
|
|
|
|
|
|
|
extern char *optarg;
|
|
|
|
extern int optind, opterr, optopt, optreset;
|
|
|
|
|
|
|
|
int getopt(int, char *const[], const char *) paramsnonnull();
|
|
|
|
|
|
|
|
COSMOPOLITAN_C_END_
|
|
|
|
#endif /* COSMOPOLITAN_GETOPT_H_ */
|