summaryrefslogtreecommitdiff
path: root/nt
diff options
context:
space:
mode:
authorEli Zaretskii <eliz@gnu.org>2018-08-18 16:10:28 +0300
committerEli Zaretskii <eliz@gnu.org>2018-08-18 16:10:28 +0300
commit22d1f534a19b2382c8621f9778aac8a94b43ef0d (patch)
treee044f8f5dc1036bc7021ed71812e92204168e1a6 /nt
parent7bc9ce7431ae6ab4e6828015f75caf1f2196a97c (diff)
downloademacs-22d1f534a19b2382c8621f9778aac8a94b43ef0d.tar.gz
Avoid compilation warning in nt/addpm.c
* nt/addpm.c [!MINGW_W64]: Undefine _WIN32_IE before redefining it, to avoid compilation warnings.
Diffstat (limited to 'nt')
-rw-r--r--nt/addpm.c7
1 files 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 <https://www.gnu.org/licenses/>. */
#include <stdio.h>
#include <malloc.h>
-/* 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