Mercurial > sdl-ios-xcode
changeset 1272:94c0709f8856
Compile fix for Window CE
author | Sam Lantinga <slouken@libsdl.org> |
---|---|
date | Thu, 26 Jan 2006 08:08:22 +0000 |
parents | 092722dbc766 |
children | 05d5d36b71f4 |
files | src/video/wincommon/SDL_sysevents.c |
diffstat | 1 files changed, 8 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/src/video/wincommon/SDL_sysevents.c Thu Jan 26 07:38:43 2006 +0000 +++ b/src/video/wincommon/SDL_sysevents.c Thu Jan 26 08:08:22 2006 +0000 @@ -79,6 +79,7 @@ void (*WIN_WinPAINT)(_THIS, HDC hdc); extern void DIB_SwapGamma(_THIS); +#ifndef NO_GETKEYBOARDSTATE /* Variables and support functions for SDL_ToUnicode() */ static int codepage; static int Is9xME(); @@ -86,6 +87,7 @@ static int WINAPI ToUnicode9xME(UINT vkey, UINT scancode, BYTE *keystate, Uint16 *wchars, int wsize, UINT flags); ToUnicodeFN SDL_ToUnicode = ToUnicode9xME; +#endif /* !NO_GETKEYBOARDSTATE */ #if defined(_WIN32_WCE) @@ -631,10 +633,12 @@ } return(0); +#ifndef NO_GETKEYBOARDSTATE case WM_INPUTLANGCHANGE: { codepage = GetCodePage(); } return(TRUE); +#endif default: { /* Special handling by the video driver */ @@ -742,9 +746,11 @@ /* Check for SDL_WINDOWID hack */ SDL_windowid = getenv("SDL_WINDOWID"); +#ifndef NO_GETKEYBOARDSTATE /* Initialise variables for SDL_ToUnicode() */ codepage = GetCodePage(); SDL_ToUnicode = Is9xME() ? ToUnicode9xME : ToUnicode; +#endif app_registered = 1; return(0); @@ -769,6 +775,7 @@ app_registered = 0; } +#ifndef NO_GETKEYBOARDSTATE /* JFP: Implementation of ToUnicode() that works on 9x/ME/2K/XP */ static int Is9xME() @@ -805,3 +812,4 @@ return 0; } +#endif /* !NO_GETKEYBOARDSTATE */