From e01caae318546defb23982c4482cbbb1c69f1e31 Mon Sep 17 00:00:00 2001 From: Martin Fleisz Date: Mon, 11 Mar 2013 10:13:06 +0100 Subject: [PATCH] locale: Fix compile error on Windows --- libfreerdp/locale/keyboard.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/libfreerdp/locale/keyboard.c b/libfreerdp/locale/keyboard.c index dbb5dcedc..fc6255fbd 100644 --- a/libfreerdp/locale/keyboard.c +++ b/libfreerdp/locale/keyboard.c @@ -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);