43 #ifdef PLATFORM_WINDOWS
46 # define __BEGIN_DECLS extern "C" {
47 # define __END_DECLS }
49 # define __BEGIN_DECLS
52 # define __P(args) args
60 #ifdef PLATFORM_WINDOWS
61 # if !defined(GETOPT_API)
62 # define GETOPT_API __declspec(dllimport)
69 #if !defined(_POSIX_SOURCE) && !defined(_XOPEN_SOURCE)
71 #define required_argument 1
72 #define optional_argument 2
90 const struct option *,
int *));
94 #ifdef PLATFORM_WINDOWS
__BEGIN_DECLS GETOPT_API int getopt_long __P((int, char *const *, const char *, const struct option *, int *))
int getopt(int nargc, char *const *nargv, const char *ostr)
__BEGIN_DECLS GETOPT_API int getopt_long(int nargc, char *const *nargv, const char *options, const struct option *long_options, int *idx)
__BEGIN_DECLS GETOPT_API int opterr