diff options
author | Sam Lantinga <slouken@libsdl.org> | 2017-08-13 21:06:52 -0700 |
---|---|---|
committer | Sam Lantinga <slouken@libsdl.org> | 2017-08-13 21:06:52 -0700 |
commit | b7acf77c32dd76dc622448d0298c01edff1fd72a (patch) | |
tree | 824957203120320267edd565675774ded4c48b1d /test/testatomic.c | |
parent | 77ddb49e7a34cd5491a1458212e2f6265855994f (diff) | |
download | sdl-b7acf77c32dd76dc622448d0298c01edff1fd72a.tar.gz |
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.
Diffstat (limited to 'test/testatomic.c')
-rw-r--r-- | test/testatomic.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/test/testatomic.c b/test/testatomic.c index 52646d630..bbb027063 100644 --- a/test/testatomic.c +++ b/test/testatomic.c @@ -117,7 +117,7 @@ static SDL_atomic_t threadsRunning; static SDL_sem *threadDone; static -int adder(void* junk) +int SDLCALL adder(void* junk) { unsigned long N=NInter; SDL_Log("Thread subtracting %d %lu times\n",CountInc,N); @@ -495,7 +495,7 @@ typedef struct char padding[SDL_CACHELINE_SIZE-(sizeof(SDL_EventQueue*)+sizeof(int)*NUM_WRITERS+sizeof(int)+sizeof(SDL_bool))%SDL_CACHELINE_SIZE]; } ReaderData; -static int FIFO_Writer(void* _data) +static int SDLCALL FIFO_Writer(void* _data) { WriterData *data = (WriterData *)_data; SDL_EventQueue *queue = data->queue; @@ -530,7 +530,7 @@ static int FIFO_Writer(void* _data) return 0; } -static int FIFO_Reader(void* _data) +static int SDLCALL FIFO_Reader(void* _data) { ReaderData *data = (ReaderData *)_data; SDL_EventQueue *queue = data->queue; @@ -570,7 +570,7 @@ static int FIFO_Reader(void* _data) #ifdef TEST_SPINLOCK_FIFO /* This thread periodically locks the queue for no particular reason */ -static int FIFO_Watcher(void* _data) +static int SDLCALL FIFO_Watcher(void* _data) { SDL_EventQueue *queue = (SDL_EventQueue *)_data; |