comparison test/testerror.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 be9c9c8f6d53
children 782fd950bd46 c121d94672cb
comparison
equal deleted inserted replaced
1768:814f9f2c7a33 1769:290b5baf2fca
15 { 15 {
16 SDL_Quit(); 16 SDL_Quit();
17 exit(rc); 17 exit(rc);
18 } 18 }
19 19
20 int ThreadFunc(void *data) 20 int SDLCALL ThreadFunc(void *data)
21 { 21 {
22 /* Set the child thread error string */ 22 /* Set the child thread error string */
23 SDL_SetError("Thread %s (%d) had a problem: %s", 23 SDL_SetError("Thread %s (%d) had a problem: %s",
24 (char *)data, SDL_ThreadID(), "nevermind"); 24 (char *)data, SDL_ThreadID(), "nevermind");
25 while ( alive ) { 25 while ( alive ) {