39 #define LIB_API_GETOPT __declspec(dllexport)
41 #define LIB_API_GETOPT __declspec(dllimport)
44 #define LIB_API_GETOPT
46 #elif defined(__linux__) || defined(__APPLE__)
47 #define LIB_API_GETOPT
51 extern LIB_API_GETOPT
char *
optarg;
87 #define required_argument 1
88 #define optional_argument 2
90 extern LIB_API_GETOPT
int getopt(
int argc,
char *argv[],
const char *optstring);
91 extern LIB_API_GETOPT
int getopt_long(
int argc,
char* argv[],
const char* optstring,
const struct option *longopts,
int *longindex);
LIB_API_GETOPT int opterr
LIB_API_GETOPT int getopt_long(int argc, char *argv[], const char *optstring, const struct option *longopts, int *longindex)
LIB_API_GETOPT int getopt(int argc, char *argv[], const char *optstring)
LIB_API_GETOPT int optopt
LIB_API_GETOPT int optind
LIB_API_GETOPT char * optarg