From 4eca3de99f8dd4e1814357992671fca67e63f9a6 Mon Sep 17 00:00:00 2001 From: "Ryan C. Gordon" Date: Sun, 11 Sep 2011 23:01:03 -0400 Subject: [PATCH] Maybe THIS will fix the Cygwin warnings... --HG-- branch : SDL-1.2 --- include/SDL_thread.h | 5 ----- src/thread/win32/SDL_systhread.c | 5 +++++ 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/include/SDL_thread.h b/include/SDL_thread.h index b38219aa0..dec713766 100644 --- a/include/SDL_thread.h +++ b/include/SDL_thread.h @@ -68,11 +68,6 @@ typedef struct SDL_Thread SDL_Thread; #ifdef __OS2__ typedef int (*pfnSDL_CurrentBeginThread)(void (*func)(void *), void *, unsigned, void *arg); typedef void (*pfnSDL_CurrentEndThread)(void); -#elif defined(__CYGWIN__) && !defined(__MINGW32__) -typedef unsigned long (__cdecl *pfnSDL_CurrentBeginThread) (void *, unsigned, - unsigned (__stdcall *func)(void *), void *arg, - unsigned, unsigned *threadID); -typedef void (__cdecl *pfnSDL_CurrentEndThread)(unsigned code); #else typedef uintptr_t (__cdecl *pfnSDL_CurrentBeginThread) (void *, unsigned, unsigned (__stdcall *func)(void *), void *arg, diff --git a/src/thread/win32/SDL_systhread.c b/src/thread/win32/SDL_systhread.c index ed7e1f62c..69ff38c4d 100644 --- a/src/thread/win32/SDL_systhread.c +++ b/src/thread/win32/SDL_systhread.c @@ -45,6 +45,11 @@ typedef unsigned long (__watcall *pfnSDL_CurrentBeginThread) (void *, unsigned, unsigned (__stdcall *func)(void *), void *arg, unsigned, unsigned *threadID); typedef void (__watcall *pfnSDL_CurrentEndThread)(unsigned code); +#elif defined(__CYGWIN__) && !defined(__MINGW32__) +typedef unsigned long (__cdecl *pfnSDL_CurrentBeginThread) (void *, unsigned, + unsigned (__stdcall *func)(void *), void *arg, + unsigned, unsigned *threadID); +typedef void (__cdecl *pfnSDL_CurrentEndThread)(unsigned code); #else typedef uintptr_t (__cdecl *pfnSDL_CurrentBeginThread) (void *, unsigned, unsigned (__stdcall *func)(void *), void *arg,