Fixed building with cygwin

Note that building with cygwin gcc results in a DLL that depends on cygwin1.dll
This commit is contained in:
Sam Lantinga 2013-07-21 23:01:01 -07:00
parent 588e67304c
commit ef291a943f
4 changed files with 116 additions and 15 deletions

6
src/thread/windows/SDL_systhread.c Normal file → Executable file
View file

@ -106,6 +106,12 @@ SDL_SYS_CreateThread(SDL_Thread * thread, void *args,
pfnSDL_CurrentBeginThread pfnBeginThread,
pfnSDL_CurrentEndThread pfnEndThread)
{
#elif defined(__CYGWIN__)
int
SDL_SYS_CreateThread(SDL_Thread * thread, void *args)
{
pfnSDL_CurrentBeginThread pfnBeginThread = NULL;
pfnSDL_CurrentEndThread pfnEndThread = NULL;
#else
int
SDL_SYS_CreateThread(SDL_Thread * thread, void *args)