[Spice-commits] gtk/spice-widget.c

Uri Lublin uril at kemper.freedesktop.org
Wed Feb 6 14:10:30 PST 2013


 gtk/spice-widget.c |    3 +++
 1 file changed, 3 insertions(+)

New commits:
commit 602edadc0ea74f7c212139fcddacbc2cb07ba1c8
Author: Uri Lublin <uril at redhat.com>
Date:   Wed Feb 6 21:00:33 2013 +0200

    mingw: spice-widget: make sure MAPVK_VK_TO_VSC is defined
    
    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

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"


More information about the Spice-commits mailing list