Skip to content

Commit

Permalink
Make SDL_KillThread() print a warning to stderr for now.
Browse files Browse the repository at this point in the history
  • Loading branch information
icculus committed Feb 10, 2019
1 parent b04e271 commit f357c8a
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion src/SDL12_compat.c
Expand Up @@ -2008,7 +2008,12 @@ SDL_mutexV(SDL_mutex *mutex)


/* !!! FIXME: Removed from 2.0; do nothing. We can't even report failure. */
DECLSPEC void SDLCALL SDL_KillThread(SDL_Thread *thread) {}
DECLSPEC void SDLCALL SDL_KillThread(SDL_Thread *thread)
{
fprintf(stderr,
"WARNING: this app used SDL_KillThread(), an unforgivable curse.\n"
"This program should be fixed. No thread was actually harmed.\n");
}

/* This changed from an opaque pointer to an int in 2.0. */
typedef struct _SDL12_TimerID *SDL12_TimerID;
Expand Down

0 comments on commit f357c8a

Please sign in to comment.