diff --git a/src/fluidsynth.c b/src/fluidsynth.c index e2c23cb8..47b141d2 100644 --- a/src/fluidsynth.c +++ b/src/fluidsynth.c @@ -34,6 +34,7 @@ #if defined(HAVE_GETOPT_H) #include +#define GETOPT_SUPPORT 1 #endif #include "fluidsynth.h" @@ -58,15 +59,6 @@ void print_welcome(void); fluid_cmd_handler_t* cmd_handler = NULL; int option_help = 0; /* set to 1 if "-o help" is specified */ -/* - * support for the getopt function - */ -#if defined(HAVE_GETOPT_H) -#define GETOPT_SUPPORT 1 -int getopt(int argc, char * const argv[], const char *optstring); -extern char *optarg; -extern int optind, opterr, optopt; -#endif /* Process a command line option -o setting=value, for example: -o synth.polyhony=16 */ void process_o_cmd_line_option(fluid_settings_t* settings, char* optarg)