1
0
mirror of https://github.com/OpenTTD/OpenTTD.git synced 2025-08-16 11:09:11 +00:00

(svn r2697) Make compiling with SDL on Windows work again (missing #includes) and fix some warnings

This commit is contained in:
tron
2005-07-24 06:09:54 +00:00
parent 23c20173b1
commit 475d7fc0ae
3 changed files with 27 additions and 20 deletions

4
sdl.c
View File

@@ -17,7 +17,7 @@ static int _sdl_usage;
#ifdef DYNAMICALLY_LOADED_SDL
bool LoadLibraryList(void **proc, const char *dll);
#include "win32.h"
#define M(x) x "\0"
static const char sdl_files[] =
@@ -59,7 +59,7 @@ static const char *LoadSdlDLL(void)
{
if (sdl_proc.SDL_Init != NULL)
return NULL;
if (!LoadLibraryList((void**)&sdl_proc, sdl_files))
if (!LoadLibraryList((Function*)&sdl_proc, sdl_files))
return "Unable to load sdl.dll";
return NULL;
}