2017-07-10 20:45:24 +03:00
|
|
|
/*
|
|
|
|
* POSIX getopt for Windows
|
|
|
|
*
|
|
|
|
* AT&T Public License
|
|
|
|
*
|
|
|
|
* Code given out at the 1985 UNIFORUM conference in Dallas.
|
|
|
|
*/
|
|
|
|
|
|
|
|
#ifndef _WINGETOPT_H_
|
|
|
|
#define _WINGETOPT_H_
|
|
|
|
|
2019-08-28 17:24:22 +03:00
|
|
|
/* Bit of madness for Windows console */
|
|
|
|
#define mdbx_strerror mdbx_strerror_ANSI2OEM
|
|
|
|
#define mdbx_strerror_r mdbx_strerror_r_ANSI2OEM
|
|
|
|
|
2017-07-10 20:45:24 +03:00
|
|
|
#ifdef __cplusplus
|
|
|
|
extern "C" {
|
|
|
|
#endif
|
|
|
|
|
|
|
|
extern int opterr;
|
|
|
|
extern int optind;
|
|
|
|
extern int optopt;
|
|
|
|
extern char *optarg;
|
|
|
|
int getopt(int argc, char *const argv[], const char *optstring);
|
|
|
|
|
|
|
|
#ifdef __cplusplus
|
|
|
|
}
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#endif /* _GETOPT_H_ */
|