X-Git-Url: https://jasonwoof.com/gitweb/?p=vor.git;a=blobdiff_plain;f=args.c;h=06efba355093a0544bf16bfe5d9e26f0e373cbf6;hp=a9ff69aecd3c93b52d65fd5f38e4c0d9e2d49eb9;hb=7981a2b8d152e6372aea8191f8c2197f866a450b;hpb=474fd4f894f57b7d53a22e15b31b8749c42e9a53 diff --git a/args.c b/args.c index a9ff69a..06efba3 100644 --- a/args.c +++ b/args.c @@ -12,6 +12,9 @@ int opt_fullscreen; int opt_music; int opt_sound; + +#ifndef WIN32 + error_t parse_opt(int, char*, struct argp_state *); const char *argp_program_version = "Variations on Rockdodger " VERSION; @@ -33,6 +36,8 @@ static struct argp_option opts[] = { struct argp argp = { opts, &parse_opt, 0, doc }; +#endif // !WIN32 + void init_opts(void) { @@ -47,6 +52,8 @@ init_opts(void) opt_music = 0; } +#ifndef WIN32 + error_t parse_opt(int key, char *arg, struct argp_state *state) { @@ -83,3 +90,5 @@ parse_opt(int key, char *arg, struct argp_state *state) } return 0; } + +#endif // !WIN32