SDL_test: use SDLCALL calling convention

This is needed when using a pre-built static SDL3_test library.
This commit is contained in:
Anonymous Maarten authored and Anonymous Maarten committed 2024-09-06 14:19:05 +02:00
1 parent 379aea5c2d
commit db96ddca34
38 files changed
+444 -452

No files matched your search

+5 -5
View File
@@ -20,7 +20,7 @@ static int g_timerCallbackCalled = 0;
/* Fixture */
static void timerSetUp(void **arg)
static void SDLCALL timerSetUp(void **arg)
{
/* Start SDL timer subsystem */
SDL_bool ret = SDL_InitSubSystem(SDL_INIT_TIMER);
@@ -36,7 +36,7 @@ static void timerSetUp(void **arg)
/**
* Call to SDL_GetPerformanceCounter
*/
static int timer_getPerformanceCounter(void *arg)
static int SDLCALL timer_getPerformanceCounter(void *arg)
{
Uint64 result;
@@ -50,7 +50,7 @@ static int timer_getPerformanceCounter(void *arg)
/**
* Call to SDL_GetPerformanceFrequency
*/
static int timer_getPerformanceFrequency(void *arg)
static int SDLCALL timer_getPerformanceFrequency(void *arg)
{
Uint64 result;
@@ -64,7 +64,7 @@ static int timer_getPerformanceFrequency(void *arg)
/**
* Call to SDL_Delay and SDL_GetTicks
*/
static int timer_delayAndGetTicks(void *arg)
static int SDLCALL timer_delayAndGetTicks(void *arg)
{
const int testDelay = 100;
const int marginOfError = 25;
@@ -126,7 +126,7 @@ static Uint32 SDLCALL timerTestCallback(void *param, SDL_TimerID timerID, Uint32
/**
* Call to SDL_AddTimer and SDL_RemoveTimer
*/
static int timer_addRemoveTimer(void *arg)
static int SDLCALL timer_addRemoveTimer(void *arg)
{
#ifdef SDL_PLATFORM_EMSCRIPTEN
SDLTest_Log("Timer callbacks on Emscripten require a main loop to handle events");