From 83d8f1eb207dedbb34045160c5821e1b0ac9ebf7 Mon Sep 17 00:00:00 2001 From: Scott D Phillips Date: Fri, 11 Nov 2016 10:55:57 -0800 Subject: [PATCH] winks: undef windows SDK macros before redefining them Redefining an already defined macro causes a warning from the msvc preprocessor https://bugzilla.gnome.org/show_bug.cgi?id=774293 --- sys/winks/kshelpers.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/sys/winks/kshelpers.c b/sys/winks/kshelpers.c index 3b5ec28..e0c1123 100644 --- a/sys/winks/kshelpers.c +++ b/sys/winks/kshelpers.c @@ -22,6 +22,8 @@ /* This plugin is from the era of Windows XP and uses APIs that have been * deprecated since then. Let's pretend we're Windows XP too so that Windows * lets us use that deprecated API. */ +#undef NTDDI_VERSION +#undef _WIN32_WINNT #define NTDDI_VERSION NTDDI_WINXP #define _WIN32_WINNT _WIN32_WINNT_WINXP -- 2.7.4