Maybe THIS will fix the Cygwin warnings... SDL-1.2
authorRyan C. Gordon <icculus@icculus.org>
Sun, 11 Sep 2011 23:01:03 -0400
branchSDL-1.2
changeset 58991f0b95cc4b85
parent 5898 17c2babefa47
child 5900 3cec8f43fc38
Maybe THIS will fix the Cygwin warnings...
include/SDL_thread.h
src/thread/win32/SDL_systhread.c
     1.1 --- a/include/SDL_thread.h	Sun Sep 11 22:38:45 2011 -0400
     1.2 +++ b/include/SDL_thread.h	Sun Sep 11 23:01:03 2011 -0400
     1.3 @@ -68,11 +68,6 @@
     1.4  #ifdef __OS2__
     1.5  typedef int (*pfnSDL_CurrentBeginThread)(void (*func)(void *), void *, unsigned, void *arg); 
     1.6  typedef void (*pfnSDL_CurrentEndThread)(void);
     1.7 -#elif defined(__CYGWIN__) && !defined(__MINGW32__)
     1.8 -typedef unsigned long (__cdecl *pfnSDL_CurrentBeginThread) (void *, unsigned,
     1.9 -        unsigned (__stdcall *func)(void *), void *arg, 
    1.10 -        unsigned, unsigned *threadID);
    1.11 -typedef void (__cdecl *pfnSDL_CurrentEndThread)(unsigned code);
    1.12  #else
    1.13  typedef uintptr_t (__cdecl *pfnSDL_CurrentBeginThread) (void *, unsigned,
    1.14          unsigned (__stdcall *func)(void *), void *arg, 
     2.1 --- a/src/thread/win32/SDL_systhread.c	Sun Sep 11 22:38:45 2011 -0400
     2.2 +++ b/src/thread/win32/SDL_systhread.c	Sun Sep 11 23:01:03 2011 -0400
     2.3 @@ -45,6 +45,11 @@
     2.4          unsigned (__stdcall *func)(void *), void *arg, 
     2.5          unsigned, unsigned *threadID);
     2.6  typedef void (__watcall *pfnSDL_CurrentEndThread)(unsigned code);
     2.7 +#elif defined(__CYGWIN__) && !defined(__MINGW32__)
     2.8 +typedef unsigned long (__cdecl *pfnSDL_CurrentBeginThread) (void *, unsigned,
     2.9 +        unsigned (__stdcall *func)(void *), void *arg, 
    2.10 +        unsigned, unsigned *threadID);
    2.11 +typedef void (__cdecl *pfnSDL_CurrentEndThread)(unsigned code);
    2.12  #else
    2.13  typedef uintptr_t (__cdecl *pfnSDL_CurrentBeginThread) (void *, unsigned,
    2.14          unsigned (__stdcall *func)(void *), void *arg,