From 22d1f534a19b2382c8621f9778aac8a94b43ef0d Mon Sep 17 00:00:00 2001 From: Eli Zaretskii Date: Sat, 18 Aug 2018 16:10:28 +0300 Subject: [PATCH] Avoid compilation warning in nt/addpm.c * nt/addpm.c [!MINGW_W64]: Undefine _WIN32_IE before redefining it, to avoid compilation warnings. --- nt/addpm.c | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/nt/addpm.c b/nt/addpm.c index ec7d7ff52db..21320206d6e 100644 --- a/nt/addpm.c +++ b/nt/addpm.c @@ -38,9 +38,12 @@ along with GNU Emacs. If not, see . */ #include #include -/* MinGW64 barfs if _WIN32_IE is defined to anything below 0x500. */ +/* MinGW64 barfs if _WIN32_IE is defined to anything below 0x0500. */ #ifndef MINGW_W64 -#define _WIN32_IE 0x400 +# ifdef _WIN32_IE +# undef _WIN32_IE +# endif +#define _WIN32_IE 0x0400 #endif /* Request C Object macros for COM interfaces. */ #define COBJMACROS 1 -- 2.39.5