diff options
author | Sam Lantinga <slouken@libsdl.org> | 2006-05-07 03:40:06 +0000 |
---|---|---|
committer | Sam Lantinga <slouken@libsdl.org> | 2006-05-07 03:40:06 +0000 |
commit | 1c9f19b6ff1b947e762cea36d70845f3a6bbd601 (patch) | |
tree | e1fad98fcc8ae82aaca51396e345b10672d4f04a /test/torturethread.c | |
parent | 62c53e902b6c51a7b6ff05cf66e8166bd623a079 (diff) | |
download | sdl-1c9f19b6ff1b947e762cea36d70845f3a6bbd601.tar.gz |
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.
Diffstat (limited to 'test/torturethread.c')
-rw-r--r-- | test/torturethread.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/test/torturethread.c b/test/torturethread.c index d8b1935d5..cb18954d6 100644 --- a/test/torturethread.c +++ b/test/torturethread.c @@ -20,14 +20,14 @@ static void quit(int rc) 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; |