mirror of
https://github.com/libsdl-org/SDL.git
synced 2025-10-01 23:48:29 +00:00
Fixed bug 3744 - missing SDLCALL in several functions
Ozkan Sezer The attached patch adds missing SDLCALL to several functions, so that they properly match the headers as intended.
This commit is contained in:
@@ -49,7 +49,7 @@
|
||||
#endif
|
||||
|
||||
|
||||
static SDL_assert_state
|
||||
static SDL_assert_state SDLCALL
|
||||
SDL_PromptAssertion(const SDL_assert_data *data, void *userdata);
|
||||
|
||||
/*
|
||||
@@ -141,7 +141,7 @@ static SDL_NORETURN void SDL_AbortAssertion(void)
|
||||
}
|
||||
|
||||
|
||||
static SDL_assert_state
|
||||
static SDL_assert_state SDLCALL
|
||||
SDL_PromptAssertion(const SDL_assert_data *data, void *userdata)
|
||||
{
|
||||
#ifdef __WIN32__
|
||||
|
@@ -28,7 +28,7 @@
|
||||
#include "../video/SDL_sysvideo.h"
|
||||
|
||||
|
||||
static int
|
||||
static int SDLCALL
|
||||
RemovePendingResizedEvents(void * userdata, SDL_Event *event)
|
||||
{
|
||||
SDL_Event *new_event = (SDL_Event *)userdata;
|
||||
@@ -42,7 +42,7 @@ RemovePendingResizedEvents(void * userdata, SDL_Event *event)
|
||||
return 1;
|
||||
}
|
||||
|
||||
static int
|
||||
static int SDLCALL
|
||||
RemovePendingSizeChangedEvents(void * userdata, SDL_Event *event)
|
||||
{
|
||||
SDL_Event *new_event = (SDL_Event *)userdata;
|
||||
@@ -56,7 +56,7 @@ RemovePendingSizeChangedEvents(void * userdata, SDL_Event *event)
|
||||
return 1;
|
||||
}
|
||||
|
||||
static int
|
||||
static int SDLCALL
|
||||
RemovePendingMoveEvents(void * userdata, SDL_Event *event)
|
||||
{
|
||||
SDL_Event *new_event = (SDL_Event *)userdata;
|
||||
@@ -70,7 +70,7 @@ RemovePendingMoveEvents(void * userdata, SDL_Event *event)
|
||||
return 1;
|
||||
}
|
||||
|
||||
static int
|
||||
static int SDLCALL
|
||||
RemovePendingExposedEvents(void * userdata, SDL_Event *event)
|
||||
{
|
||||
SDL_Event *new_event = (SDL_Event *)userdata;
|
||||
|
@@ -333,7 +333,7 @@ static void HandleJoystickHat(SDL_GameController *gamecontroller, int hat, Uint8
|
||||
/*
|
||||
* Event filter to fire controller events from joystick ones
|
||||
*/
|
||||
static int SDL_GameControllerEventWatcher(void *userdata, SDL_Event * event)
|
||||
static int SDLCALL SDL_GameControllerEventWatcher(void *userdata, SDL_Event * event)
|
||||
{
|
||||
switch(event->type) {
|
||||
case SDL_JOYAXISMOTION:
|
||||
|
@@ -102,7 +102,7 @@ SDL_GetRenderDriverInfo(int index, SDL_RendererInfo * info)
|
||||
#endif
|
||||
}
|
||||
|
||||
static int
|
||||
static int SDLCALL
|
||||
SDL_RendererEventWatch(void *userdata, SDL_Event *event)
|
||||
{
|
||||
SDL_Renderer *renderer = (SDL_Renderer *)userdata;
|
||||
|
@@ -97,7 +97,7 @@ SDL_AddTimerInternal(SDL_TimerData *data, SDL_Timer *timer)
|
||||
timer->next = curr;
|
||||
}
|
||||
|
||||
static int
|
||||
static int SDLCALL
|
||||
SDL_TimerThread(void *_data)
|
||||
{
|
||||
SDL_TimerData *data = (SDL_TimerData *)_data;
|
||||
|
Reference in New Issue
Block a user