More Cygwin compiler warnings...
--HG-- branch : SDL-1.2
This commit is contained in:
parent
07f5929948
commit
98f952fbc0
2 changed files with 9 additions and 1 deletions
|
@ -68,6 +68,11 @@ typedef struct SDL_Thread SDL_Thread;
|
||||||
#ifdef __OS2__
|
#ifdef __OS2__
|
||||||
typedef int (*pfnSDL_CurrentBeginThread)(void (*func)(void *), void *, unsigned, void *arg);
|
typedef int (*pfnSDL_CurrentBeginThread)(void (*func)(void *), void *, unsigned, void *arg);
|
||||||
typedef void (*pfnSDL_CurrentEndThread)(void);
|
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
|
#else
|
||||||
typedef uintptr_t (__cdecl *pfnSDL_CurrentBeginThread) (void *, unsigned,
|
typedef uintptr_t (__cdecl *pfnSDL_CurrentBeginThread) (void *, unsigned,
|
||||||
unsigned (__stdcall *func)(void *), void *arg,
|
unsigned (__stdcall *func)(void *), void *arg,
|
||||||
|
|
|
@ -762,7 +762,10 @@ int SDL_RegisterApp(char *name, Uint32 style, void *hInst)
|
||||||
#ifndef NO_GETKEYBOARDSTATE
|
#ifndef NO_GETKEYBOARDSTATE
|
||||||
/* Initialise variables for SDL_ToUnicode() */
|
/* Initialise variables for SDL_ToUnicode() */
|
||||||
codepage = GetCodePage();
|
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
|
#endif
|
||||||
|
|
||||||
app_registered = 1;
|
app_registered = 1;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue