From bc5cc7094af111ec8c844959d62b9844f9ec94e3 Mon Sep 17 00:00:00 2001 From: Ozkan Sezer Date: Sat, 17 Dec 2016 12:10:07 +0000 Subject: [PATCH] add missing SDLCALL to SDL callback functions (it need not be nothing for every platform.) git-svn-id: svn://svn.code.sf.net/p/quakespasm/code/trunk/quakespasm@1367 af15c1b1-3010-417e-b628-4374ebc0bcbd --- Quake/in_sdl.c | 8 ++++---- Quake/snd_sdl.c | 2 +- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/Quake/in_sdl.c b/Quake/in_sdl.c index 881af384..dc62dc4f 100644 --- a/Quake/in_sdl.c +++ b/Quake/in_sdl.c @@ -81,7 +81,7 @@ static int buttonremap[] = /* total accumulated mouse movement since last frame */ static int total_dx, total_dy = 0; -static int IN_FilterMouseEvents (const SDL_Event *event) +static int SDLCALL IN_FilterMouseEvents (const SDL_Event *event) { switch (event->type) { @@ -95,13 +95,13 @@ static int IN_FilterMouseEvents (const SDL_Event *event) } #if defined(USE_SDL2) -static int IN_SDL2_FilterMouseEvents (void *userdata, SDL_Event *event) +static int SDLCALL IN_SDL2_FilterMouseEvents (void *userdata, SDL_Event *event) { return IN_FilterMouseEvents (event); } #endif -static void IN_BeginIgnoringMouseEvents() +static void IN_BeginIgnoringMouseEvents(void) { #if defined(USE_SDL2) SDL_EventFilter currentFilter = NULL; @@ -116,7 +116,7 @@ static void IN_BeginIgnoringMouseEvents() #endif } -static void IN_EndIgnoringMouseEvents() +static void IN_EndIgnoringMouseEvents(void) { #if defined(USE_SDL2) SDL_EventFilter currentFilter; diff --git a/Quake/snd_sdl.c b/Quake/snd_sdl.c index ebcf8f79..2dd2f8c6 100644 --- a/Quake/snd_sdl.c +++ b/Quake/snd_sdl.c @@ -37,7 +37,7 @@ static int buffersize; -static void paint_audio (void *unused, Uint8 *stream, int len) +static void SDLCALL paint_audio (void *unused, Uint8 *stream, int len) { int pos, tobufend; int len1, len2;