| 1 |
#ifdef __cplusplus |
| 2 |
extern "C" { |
| 3 |
#endif |
| 4 |
|
| 5 |
#ifndef WIN32 |
| 6 |
#include <getopt.h> |
| 7 |
#else |
| 8 |
#ifndef _GETOPT_ |
| 9 |
#define _GETOPT_ |
| 10 |
|
| 11 |
#include <stdio.h> /* for EOF */ |
| 12 |
#include <string.h> /* for strchr() */ |
| 13 |
|
| 14 |
char *optarg = NULL; /* pointer to the start of the option argument */ |
| 15 |
int optind = 1; /* number of the next argv[] to be evaluated */ |
| 16 |
int opterr = 1; /* non-zero if a question mark should be returned */ |
| 17 |
|
| 18 |
int getopt(int argc, char *argv[], char *opstring); |
| 19 |
#endif //_GETOPT_ |
| 20 |
#endif //WIN32 |
| 21 |
|
| 22 |
#ifdef __cplusplus |
| 23 |
} |
| 24 |
#endif |
| 25 |
|