[Spice-devel] [PATCH] mingw: spice-widget: make sure MAPVK_VK_TO_VSC is defined

Uri Lublin uril at redhat.com
Wed Feb 6 13:55:38 PST 2013


MAPVK_VK_TO_VSC is defined in the file:
    <path-to-mingw-sys-root>/mingw/include/winuser.h

In older mingw-headers the definition of MAPVK_VK_TO_VSC is
defined only -- #if _WIN32_WINNT >= 0x0601
---
 gtk/spice-widget.c |    3 +++
 1 files changed, 3 insertions(+), 0 deletions(-)

diff --git a/gtk/spice-widget.c b/gtk/spice-widget.c
index fcb3e87..4f2f6c4 100644
--- a/gtk/spice-widget.c
+++ b/gtk/spice-widget.c
@@ -32,6 +32,9 @@
 #ifdef WIN32
 #include <windows.h>
 #include <gdk/gdkwin32.h>
+#ifndef MAPVK_VK_TO_VSC /* may be undefined in older mingw-headers */
+#define MAPVK_VK_TO_VSC 0
+#endif
 #endif
 
 #include "spice-widget.h"
-- 
1.7.1



More information about the Spice-devel mailing list