summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorUri Lublin <uril@redhat.com>2013-02-06 21:00:33 +0200
committerUri Lublin <uril@redhat.com>2013-02-06 23:11:00 +0200
commit602edadc0ea74f7c212139fcddacbc2cb07ba1c8 (patch)
tree118a7726bfb839c6a55247347854e11f890ca8c1
parentb96f7bc26c92c400435144cd0f751820e67af33b (diff)
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
-rw-r--r--gtk/spice-widget.c3
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"