Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
remove redundant getopt.h declarations
  • Loading branch information
derselbst committed Oct 22, 2017
1 parent 799f3ea commit 456b6af
Showing 1 changed file with 1 addition and 9 deletions.
10 changes: 1 addition & 9 deletions src/fluidsynth.c
Expand Up @@ -34,6 +34,7 @@

#if defined(HAVE_GETOPT_H)
#include <getopt.h>
#define GETOPT_SUPPORT 1
#endif

#include "fluidsynth.h"
Expand All @@ -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)
Expand Down

0 comments on commit 456b6af

Please sign in to comment.