Mercurial > sdl-ios-xcode
diff src/thread/SDL_thread.c @ 1659:14717b52abc0 SDL-1.3
Merge trunk-1.3-3
author | Sam Lantinga <slouken@libsdl.org> |
---|---|
date | Wed, 17 May 2006 08:18:28 +0000 |
parents | 97d0966f4bf7 |
children | 782fd950bd46 c121d94672cb a1b03ba2fcd0 |
line wrap: on
line diff
--- a/src/thread/SDL_thread.c Mon May 01 06:58:33 2006 +0000 +++ b/src/thread/SDL_thread.c Wed May 17 08:18:28 2006 +0000 @@ -168,7 +168,7 @@ /* Arguments and callback to setup and run the user thread function */ typedef struct { - int (*func)(void *); + int (SDLCALL *func)(void *); void *data; SDL_Thread *info; SDL_sem *wait; @@ -177,7 +177,7 @@ void SDL_RunThread(void *data) { thread_args *args; - int (*userfunc)(void *); + int (SDLCALL *userfunc)(void *); void *userdata; int *statusloc; @@ -204,9 +204,9 @@ #ifdef SDL_PASSED_BEGINTHREAD_ENDTHREAD #undef SDL_CreateThread -DECLSPEC SDL_Thread * SDLCALL SDL_CreateThread(int (*fn)(void *), void *data, pfnSDL_CurrentBeginThread pfnBeginThread, pfnSDL_CurrentEndThread pfnEndThread) +DECLSPEC SDL_Thread * SDLCALL SDL_CreateThread(int (SDLCALL *fn)(void *), void *data, pfnSDL_CurrentBeginThread pfnBeginThread, pfnSDL_CurrentEndThread pfnEndThread) #else -DECLSPEC SDL_Thread * SDLCALL SDL_CreateThread(int (*fn)(void *), void *data) +DECLSPEC SDL_Thread * SDLCALL SDL_CreateThread(int (SDLCALL *fn)(void *), void *data) #endif { SDL_Thread *thread;