Cleanup getopt with mingw

This commit is contained in:
jsalmon3 2004-05-12 00:51:09 +00:00
parent 84c53bc0d8
commit 340733e765

View file

@ -185,8 +185,7 @@ extern void beos_init(int argc, char** argv);
#ifdef __CYGWIN__
#include <getopt.h>
#endif
#ifdef _MSC_VER
//#include "etlib/getopt.h"
#if defined(_MSC_VER) || defined(__MINGW32__)
extern char* optarg;
extern int optind;
extern int getopt(int argc, char* const* argv, const char* opt);
@ -202,15 +201,6 @@ extern int getopt(int argc, char* const* argv, const char* opt);
#include "SDL.h"
#endif
#ifdef __MINGW32__
extern int opterr;
extern int optind;
extern int optopt;
extern char *optarg;
extern int getopt(int argc, char* const* argv, const char* opt);
#endif
#include "stratagus.h"
#include "video.h"
#include "font.h"