locale: Fix compile error on Windows

This commit is contained in:
Martin Fleisz 2013-03-11 10:13:06 +01:00
parent 62d8f0cc0c
commit e01caae318
1 changed files with 2 additions and 0 deletions

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);