Mercurial > sdl-ios-xcode
comparison src/video/wincommon/SDL_sysevents.c @ 1341:d02b552e5304
Configure dynamically generates SDL_config.h
I'm still wrestling with autoheader, but this should work for now...
Fixed lots of build problems with C library support disabled
author | Sam Lantinga <slouken@libsdl.org> |
---|---|
date | Tue, 07 Feb 2006 12:11:33 +0000 |
parents | 604d73db6802 |
children | c71e05b4dc2e |
comparison
equal
deleted
inserted
replaced
1340:58b114ef50e7 | 1341:d02b552e5304 |
---|---|
796 char buff[8]; | 796 char buff[8]; |
797 int lcid = MAKELCID(LOWORD(GetKeyboardLayout(0)), SORT_DEFAULT); | 797 int lcid = MAKELCID(LOWORD(GetKeyboardLayout(0)), SORT_DEFAULT); |
798 int cp = GetACP(); | 798 int cp = GetACP(); |
799 | 799 |
800 if (GetLocaleInfo(lcid, LOCALE_IDEFAULTANSICODEPAGE, buff, sizeof(buff))) { | 800 if (GetLocaleInfo(lcid, LOCALE_IDEFAULTANSICODEPAGE, buff, sizeof(buff))) { |
801 cp = SDL_strtol(buff, NULL, 0); | 801 cp = SDL_atoi(buff); |
802 } | 802 } |
803 return cp; | 803 return cp; |
804 } | 804 } |
805 | 805 |
806 static int WINAPI ToUnicode9xME(UINT vkey, UINT scancode, PBYTE keystate, LPWSTR wchars, int wsize, UINT flags) | 806 static int WINAPI ToUnicode9xME(UINT vkey, UINT scancode, PBYTE keystate, LPWSTR wchars, int wsize, UINT flags) |