Merge pull request #1067 from mfleisz/kbdwinfix

locale: Fix compile error on Windows
This commit is contained in:
Marc-André Moreau 2013-03-11 05:08:03 -07:00
commit 1d5512d5c4

View File

@ -47,8 +47,10 @@ DWORD X11_KEYCODE_TO_VIRTUAL_SCANCODE[256];
int freerdp_detect_keyboard(DWORD* keyboardLayoutId)
{
#if defined(WITH_X11)
if (*keyboardLayoutId == 0)
freerdp_detect_keyboard_layout_from_xkb(keyboardLayoutId);
#endif
if (*keyboardLayoutId == 0)
freerdp_detect_keyboard_layout_from_system_locale(keyboardLayoutId);