remove redundant getopt.h declarations

This commit is contained in:
derselbst 2017-10-22 13:25:25 +02:00
parent 799f3ea44c
commit 456b6afa97

View file

@ -34,6 +34,7 @@
#if defined(HAVE_GETOPT_H)
#include <getopt.h>
#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)