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
This commit is contained in:
Scott D Phillips 2016-11-11 10:55:57 -08:00 committed by Sebastian Dröge
parent c7ee3b5d5f
commit 83d8f1eb20

View file

@ -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