2011-11-17 23:12:19 +04:00
|
|
|
/*
|
|
|
|
POSIX getopt for Windows
|
2011-10-23 06:37:47 +04:00
|
|
|
|
2011-11-17 23:12:19 +04:00
|
|
|
AT&T Public License
|
2011-10-23 06:37:47 +04:00
|
|
|
|
2011-11-17 23:12:19 +04:00
|
|
|
Code given out at the 1985 UNIFORUM conference in Dallas.
|
|
|
|
*/
|
2011-10-23 06:37:47 +04:00
|
|
|
|
2011-11-17 23:12:19 +04:00
|
|
|
#ifdef __GNUC__
|
|
|
|
#include <getopt.h>
|
2011-10-23 06:37:47 +04:00
|
|
|
#endif
|
2011-11-17 23:12:19 +04:00
|
|
|
#ifndef __GNUC__
|
2011-10-23 06:37:47 +04:00
|
|
|
|
2011-11-17 23:12:19 +04:00
|
|
|
#ifndef _WINGETOPT_H_
|
|
|
|
#define _WINGETOPT_H_
|
2011-10-23 06:37:47 +04:00
|
|
|
|
2011-11-17 23:12:19 +04:00
|
|
|
#ifdef __cplusplus
|
2011-10-23 06:37:47 +04:00
|
|
|
extern "C" {
|
|
|
|
#endif
|
|
|
|
|
|
|
|
extern int opterr;
|
2011-11-17 23:12:19 +04:00
|
|
|
extern int optind;
|
2011-10-23 06:37:47 +04:00
|
|
|
extern int optopt;
|
2011-11-17 23:12:19 +04:00
|
|
|
extern char *optarg;
|
|
|
|
extern int getopt(int argc, char **argv, char *opts);
|
2011-10-23 06:37:47 +04:00
|
|
|
|
2011-11-17 23:12:19 +04:00
|
|
|
#ifdef __cplusplus
|
2011-10-23 06:37:47 +04:00
|
|
|
}
|
|
|
|
#endif
|
|
|
|
|
2011-11-17 23:12:19 +04:00
|
|
|
#endif /* _GETOPT_H_ */
|
|
|
|
#endif /* __GNUC__ */
|
2011-10-23 06:37:47 +04:00
|
|
|
|