summaryrefslogtreecommitdiff
path: root/nt/addpm.c
diff options
context:
space:
mode:
authorEli Zaretskii <eliz@gnu.org>2013-03-27 09:21:43 +0200
committerEli Zaretskii <eliz@gnu.org>2013-03-27 09:21:43 +0200
commitc8e9d2b4ed5e3d8f8e636cd5747dbf9e7d68485e (patch)
treebdba2dc3a970d003f4d9d92a6d8c63b54e23eccd /nt/addpm.c
parentafeee3e5783916f2860d1ab30b17d89b11abccb7 (diff)
downloademacs-c8e9d2b4ed5e3d8f8e636cd5747dbf9e7d68485e.tar.gz
Fix compilation of addpm with MinGW64.
nt/addpm.c (_WIN32_IE) [_W64]: Move after inclusion of standard headers, since that's where _W64 is declared by MinGW64.
Diffstat (limited to 'nt/addpm.c')
-rw-r--r--nt/addpm.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/nt/addpm.c b/nt/addpm.c
index 8079d51dd64..688e0167334 100644
--- a/nt/addpm.c
+++ b/nt/addpm.c
@@ -34,6 +34,10 @@ along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>. */
installed, then the DDE fallback for creating icons the Windows 3.1
progman way will be used instead, but that is prone to lockups
caused by other applications not servicing their message queues. */
+#include <stdlib.h>
+#include <stdio.h>
+#include <malloc.h>
+
/* MinGW64 defines _W64 and barfs if _WIN32_IE is defined to anything
below 0x500. */
#ifndef _W64
@@ -45,9 +49,6 @@ along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>. */
#include <windows.h>
#include <shlobj.h>
#include <ddeml.h>
-#include <stdlib.h>
-#include <stdio.h>
-#include <malloc.h>
HDDEDATA CALLBACK
DdeCallback (UINT uType, UINT uFmt, HCONV hconv,