mingw gcc 3.1 is freaking weird

This commit is contained in:
Bill Currie 2002-06-02 05:27:32 +00:00
parent 9a18bda805
commit f00e892d4e
5 changed files with 11 additions and 5 deletions

View file

@ -131,20 +131,20 @@ struct option
/* Many other libraries have conflicting prototypes for getopt, with /* Many other libraries have conflicting prototypes for getopt, with
differences in the consts, in stdlib.h. To avoid compilation differences in the consts, in stdlib.h. To avoid compilation
errors, only prototype getopt for the GNU C library. */ errors, only prototype getopt for the GNU C library. */
extern int getopt (int __argc, char *const *__argv, const char *__shortopts); extern int getopt (int argc, char *const *argv, const char *__shortopts);
# else /* not __GNU_LIBRARY__ */ # else /* not __GNU_LIBRARY__ */
extern int getopt (); extern int getopt ();
# endif /* __GNU_LIBRARY__ */ # endif /* __GNU_LIBRARY__ */
# ifndef __need_getopt # ifndef __need_getopt
extern int getopt_long (int __argc, char *const *__argv, const char *__shortopts, extern int getopt_long (int argc, char *const *argv, const char *__shortopts,
const struct option *__longopts, int *__longind); const struct option *__longopts, int *__longind);
extern int getopt_long_only (int __argc, char *const *__argv, extern int getopt_long_only (int argc, char *const *argv,
const char *__shortopts, const char *__shortopts,
const struct option *__longopts, int *__longind); const struct option *__longopts, int *__longind);
/* Internal only. Users should not call this directly. */ /* Internal only. Users should not call this directly. */
extern int _getopt_internal (int __argc, char *const *__argv, extern int _getopt_internal (int argc, char *const *argv,
const char *__shortopts, const char *__shortopts,
const struct option *__longopts, int *__longind, const struct option *__longopts, int *__longind,
int __long_only); int __long_only);

View file

@ -27,7 +27,7 @@ static const char rcsid[] =
#ifndef S_ISDIR #ifndef S_ISDIR
#define S_ISDIR(m) ((m & S_IFMT) == S_IFDIR) /* is a directory */ #define S_ISDIR(m) ((m & S_IFMT) == S_IFDIR) /* is a directory */
#endif S_ISDIR #endif//S_ISDIR
/* /*

View file

@ -169,4 +169,5 @@ SDL_main (int c, char **v)
Host_Frame (time); Host_Frame (time);
oldtime = newtime; oldtime = newtime;
} }
return 0; // shouldn't be reachable, but mingw gcc 3.1 is being weird
} }

View file

@ -155,4 +155,5 @@ SDL_main (int c, char **v)
Host_Frame (time); Host_Frame (time);
oldtime = newtime; oldtime = newtime;
} }
return 0; // shouldn't be reachable, but mingw gcc 3.1 is being weird
} }

View file

@ -12,6 +12,10 @@
#include "pakfile.h" #include "pakfile.h"
#ifdef _WIN32
void *alloca(size_t size);
#endif
static const char * static const char *
pack_get_key (void *p, void *unused) pack_get_key (void *p, void *unused)
{ {