From 498173e8787157455c473aa6062250fd18da81ab Mon Sep 17 00:00:00 2001 From: Spoike Date: Wed, 12 Nov 2008 04:19:22 +0000 Subject: [PATCH] It has come to light that I suck. This incorporates the fixes already made to sys_linux since my huge commit. Again, these have not been tested. But they are more likely to work properly... As in the syntax errors are fixed. git-svn-id: https://svn.code.sf.net/p/fteqw/code/trunk@3056 fc73d0e0-1445-4013-8a0c-d673dee63da5 --- engine/client/sys_morphos.c | 4 ++-- engine/client/sys_sdl.c | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/engine/client/sys_morphos.c b/engine/client/sys_morphos.c index 929a82e46..44d4eb537 100755 --- a/engine/client/sys_morphos.c +++ b/engine/client/sys_morphos.c @@ -350,12 +350,12 @@ void Sys_UnloadGame(void) void Sys_CloseLibrary(dllhandle_t *lib) { - dlclose((void*)lib) + dlclose((void*)lib); } dllhandle_t *Sys_LoadLibrary(char *name, dllfunction_t *funcs) { int i; - HMODULE lib; + dllhandle_t lib; lib = dlopen (name, RTLD_LAZY); if (!lib) diff --git a/engine/client/sys_sdl.c b/engine/client/sys_sdl.c index 269580763..4ecf0c09c 100644 --- a/engine/client/sys_sdl.c +++ b/engine/client/sys_sdl.c @@ -153,7 +153,7 @@ void *Sys_GetGameAPI (void *parms) void Sys_CloseLibrary(dllhandle_t *lib) { - SDL_UnloadObject((void*)lib) + SDL_UnloadObject((void*)lib); } dllhandle_t *Sys_LoadLibrary(char *name, dllfunction_t *funcs) {