mirror of
https://github.com/Wind4/vlmcsd.git
synced 2024-11-25 03:21:03 +08:00
32 lines
522 B
C
32 lines
522 B
C
|
/*
|
||
|
POSIX getopt for Windows
|
||
|
|
||
|
AT&T Public License
|
||
|
|
||
|
Code given out at the 1985 UNIFORUM conference in Dallas.
|
||
|
*/
|
||
|
|
||
|
#ifndef _MSC_VER
|
||
|
#include <getopt.h>
|
||
|
#endif
|
||
|
#ifdef _MSC_VER
|
||
|
|
||
|
#ifndef _WINGETOPT_H_
|
||
|
#define _WINGETOPT_H_
|
||
|
|
||
|
#ifdef __cplusplus
|
||
|
extern "C" {
|
||
|
#endif
|
||
|
|
||
|
extern int opterr;
|
||
|
extern int optind;
|
||
|
extern int optopt;
|
||
|
extern char *optarg;
|
||
|
extern int getopt(int argc, char * const argv[], const char *optstring);
|
||
|
|
||
|
#ifdef __cplusplus
|
||
|
}
|
||
|
#endif
|
||
|
|
||
|
#endif /* _GETOPT_H_ */
|
||
|
#endif /* __GNUC__ */
|