mirror of
https://github.com/isar/libmdbx.git
synced 2025-01-04 19:44:13 +08:00
971f924c44
Change-Id: Id73d346695011dab2f670bb9e6293a1e5a1835ca
31 lines
544 B
C
31 lines
544 B
C
/*
|
|
* POSIX getopt for Windows
|
|
*
|
|
* AT&T Public License
|
|
*
|
|
* Code given out at the 1985 UNIFORUM conference in Dallas.
|
|
*/
|
|
|
|
#ifndef _WINGETOPT_H_
|
|
#define _WINGETOPT_H_
|
|
|
|
/* Bit of madness for Windows console */
|
|
#define mdbx_strerror mdbx_strerror_ANSI2OEM
|
|
#define mdbx_strerror_r mdbx_strerror_r_ANSI2OEM
|
|
|
|
#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_ */
|