compile fixes for newer sdl

This commit is contained in:
Bill Currie 2001-08-19 22:08:31 +00:00
parent 76bee6c8ab
commit 7dccb4388d

View file

@ -38,10 +38,10 @@
#include <errno.h> #include <errno.h>
#include <fcntl.h> #include <fcntl.h>
#include <limits.h> #include <limits.h>
#include <io.h>
#include <conio.h>
#ifndef _WIN32 #ifndef _WIN32
# include <io.h>
# include <conio.h>
# include <unistd.h> # include <unistd.h>
# include <stdarg.h> # include <stdarg.h>
# include <string.h> # include <string.h>
@ -235,7 +235,11 @@ Sys_Init_Cvars (void)
Cvar_Set (sys_nostdout, "1"); Cvar_Set (sys_nostdout, "1");
} }
C_LINKAGE int #ifndef SDL_main
# define SDL_main main
#endif
int
SDL_main (int c, char **v) SDL_main (int c, char **v)
{ {