Skip to content
Permalink
Browse files

More Cygwin compiler warnings...

  • Loading branch information
icculus committed Sep 12, 2011
1 parent f16a0c6 commit 8d4d17e22732a79b78955e23ceff585fbe928ba3
Showing with 9 additions and 1 deletion.
  1. +5 −0 include/SDL_thread.h
  2. +4 −1 src/video/wincommon/SDL_sysevents.c
@@ -68,6 +68,11 @@ 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,
@@ -762,7 +762,10 @@ int SDL_RegisterApp(char *name, Uint32 style, void *hInst)
#ifndef NO_GETKEYBOARDSTATE
/* Initialise variables for SDL_ToUnicode() */
codepage = GetCodePage();
SDL_ToUnicode = Is9xME() ? ToUnicode9xME : ToUnicode;

/* Cygwin headers don't match windows.h, so we have to cast around a
const issue here... */
SDL_ToUnicode = Is9xME() ? ToUnicode9xME : (ToUnicodeFn) ToUnicode;
#endif

app_registered = 1;

0 comments on commit 8d4d17e

Please sign in to comment.