summaryrefslogtreecommitdiff
path: root/sdl.c
diff options
context:
space:
mode:
authortron <tron@openttd.org>2005-07-24 06:09:54 +0000
committertron <tron@openttd.org>2005-07-24 06:09:54 +0000
commit475d7fc0aec274a1d16893ecc248e40b61ea609f (patch)
tree8bd9a5f411d6d3d03e950189c43d88519f89e9d1 /sdl.c
parent23c20173b1724867cd0b2d4065efcce051db5dbf (diff)
downloadopenttd-475d7fc0aec274a1d16893ecc248e40b61ea609f.tar.xz
(svn r2697) Make compiling with SDL on Windows work again (missing #includes) and fix some warnings
Diffstat (limited to 'sdl.c')
-rw-r--r--sdl.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sdl.c b/sdl.c
index dcc1d3cc6..67d7d17db 100644
--- a/sdl.c
+++ b/sdl.c
@@ -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;
}