src/thread/SDL_thread.c
branchSDL-1.3
changeset 1659 14717b52abc0
parent 1612 97d0966f4bf7
child 1662 782fd950bd46
child 1895 c121d94672cb
child 4159 a1b03ba2fcd0
     1.1 --- a/src/thread/SDL_thread.c	Mon May 01 06:58:33 2006 +0000
     1.2 +++ b/src/thread/SDL_thread.c	Wed May 17 08:18:28 2006 +0000
     1.3 @@ -168,7 +168,7 @@
     1.4  
     1.5  /* Arguments and callback to setup and run the user thread function */
     1.6  typedef struct {
     1.7 -	int (*func)(void *);
     1.8 +	int (SDLCALL *func)(void *);
     1.9  	void *data;
    1.10  	SDL_Thread *info;
    1.11  	SDL_sem *wait;
    1.12 @@ -177,7 +177,7 @@
    1.13  void SDL_RunThread(void *data)
    1.14  {
    1.15  	thread_args *args;
    1.16 -	int (*userfunc)(void *);
    1.17 +	int (SDLCALL *userfunc)(void *);
    1.18  	void *userdata;
    1.19  	int *statusloc;
    1.20  
    1.21 @@ -204,9 +204,9 @@
    1.22  
    1.23  #ifdef SDL_PASSED_BEGINTHREAD_ENDTHREAD
    1.24  #undef SDL_CreateThread
    1.25 -DECLSPEC SDL_Thread * SDLCALL SDL_CreateThread(int (*fn)(void *), void *data, pfnSDL_CurrentBeginThread pfnBeginThread, pfnSDL_CurrentEndThread pfnEndThread)
    1.26 +DECLSPEC SDL_Thread * SDLCALL SDL_CreateThread(int (SDLCALL *fn)(void *), void *data, pfnSDL_CurrentBeginThread pfnBeginThread, pfnSDL_CurrentEndThread pfnEndThread)
    1.27  #else
    1.28 -DECLSPEC SDL_Thread * SDLCALL SDL_CreateThread(int (*fn)(void *), void *data)
    1.29 +DECLSPEC SDL_Thread * SDLCALL SDL_CreateThread(int (SDLCALL *fn)(void *), void *data)
    1.30  #endif
    1.31  {
    1.32  	SDL_Thread *thread;