[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Emacs-diffs] emacs-26 22d1f53: Avoid compilation warning in nt/addpm.c
From: |
Eli Zaretskii |
Subject: |
[Emacs-diffs] emacs-26 22d1f53: Avoid compilation warning in nt/addpm.c |
Date: |
Sat, 18 Aug 2018 09:11:23 -0400 (EDT) |
branch: emacs-26
commit 22d1f534a19b2382c8621f9778aac8a94b43ef0d
Author: Eli Zaretskii <address@hidden>
Commit: Eli Zaretskii <address@hidden>
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 ec7d7ff..2132020 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
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Emacs-diffs] emacs-26 22d1f53: Avoid compilation warning in nt/addpm.c,
Eli Zaretskii <=