Mercurial > sdl-ios-xcode
diff test/torturethread.c @ 1769:290b5baf2fca
Fixed bug #215
The current SVN trunk is missing the SDLCALL specifier at numerous locations.
It has to be added for all (possibly user provided) callbacks.
I stumbled over this while creating a makefile for the OpenWatcom compiler for
Win32.
author | Sam Lantinga <slouken@libsdl.org> |
---|---|
date | Sun, 07 May 2006 03:40:06 +0000 |
parents | 3b08574f4c60 |
children | 782fd950bd46 c121d94672cb |
line wrap: on
line diff
--- a/test/torturethread.c Fri May 05 05:50:26 2006 +0000 +++ b/test/torturethread.c Sun May 07 03:40:06 2006 +0000 @@ -20,14 +20,14 @@ exit(rc); } -int SubThreadFunc(void *data) { +int SDLCALL SubThreadFunc(void *data) { while(! *(int volatile *)data) { ; /*SDL_Delay(10);*/ /* do nothing */ } return 0; } -int ThreadFunc(void *data) { +int SDLCALL ThreadFunc(void *data) { SDL_Thread *sub_threads[NUMTHREADS]; int flags[NUMTHREADS]; int i;