mirror of
https://github.com/encounter/SDL.git
synced 2025-12-08 13:15:10 +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:
@@ -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;
|
||||
|
||||
|
||||
@@ -46,7 +46,7 @@ int _audio_testCallbackLength;
|
||||
|
||||
|
||||
/* Test callback function */
|
||||
void _audio_testCallback(void *userdata, Uint8 *stream, int len)
|
||||
void SDLCALL _audio_testCallback(void *userdata, Uint8 *stream, int len)
|
||||
{
|
||||
/* track that callback was called */
|
||||
_audio_testCallbackCounter++;
|
||||
|
||||
@@ -25,7 +25,7 @@ int _userdataValue1 = 1;
|
||||
int _userdataValue2 = 2;
|
||||
|
||||
/* Event filter that sets some flags and optionally checks userdata */
|
||||
int _events_sampleNullEventFilter(void *userdata, SDL_Event *event)
|
||||
int SDLCALL _events_sampleNullEventFilter(void *userdata, SDL_Event *event)
|
||||
{
|
||||
_eventFilterCalled = 1;
|
||||
|
||||
|
||||
@@ -104,7 +104,7 @@ timer_delayAndGetTicks(void *arg)
|
||||
}
|
||||
|
||||
/* Test callback */
|
||||
Uint32 _timerTestCallback(Uint32 interval, void *param)
|
||||
Uint32 SDLCALL _timerTestCallback(Uint32 interval, void *param)
|
||||
{
|
||||
_timerCallbackCalled = 1;
|
||||
|
||||
|
||||
@@ -14,7 +14,7 @@ const SDL_Rect drag_areas[] = {
|
||||
static const SDL_Rect *areas = drag_areas;
|
||||
static int numareas = SDL_arraysize(drag_areas);
|
||||
|
||||
static SDL_HitTestResult
|
||||
static SDL_HitTestResult SDLCALL
|
||||
hitTest(SDL_Window *window, const SDL_Point *pt, void *data)
|
||||
{
|
||||
int i;
|
||||
|
||||
@@ -25,7 +25,7 @@ quit(int rc)
|
||||
exit(rc);
|
||||
}
|
||||
|
||||
static int
|
||||
static int SDLCALL
|
||||
button_messagebox(void *eventNumber)
|
||||
{
|
||||
const SDL_MessageBoxButtonData buttons[] = {
|
||||
|
||||
Reference in New Issue
Block a user