aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorEli Zaretskii2013-03-27 09:21:43 +0200
committerEli Zaretskii2013-03-27 09:21:43 +0200
commitc8e9d2b4ed5e3d8f8e636cd5747dbf9e7d68485e (patch)
treebdba2dc3a970d003f4d9d92a6d8c63b54e23eccd
parentafeee3e5783916f2860d1ab30b17d89b11abccb7 (diff)
downloademacs-c8e9d2b4ed5e3d8f8e636cd5747dbf9e7d68485e.tar.gz
emacs-c8e9d2b4ed5e3d8f8e636cd5747dbf9e7d68485e.zip
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.
-rw-r--r--nt/ChangeLog5
-rw-r--r--nt/addpm.c7
2 files changed, 9 insertions, 3 deletions
diff --git a/nt/ChangeLog b/nt/ChangeLog
index f851004f605..1ae819424af 100644
--- a/nt/ChangeLog
+++ b/nt/ChangeLog
@@ -1,3 +1,8 @@
12013-03-27 Eli Zaretskii <eliz@gnu.org>
2
3 * addpm.c (_WIN32_IE) [_W64]: Move after inclusion of standard
4 headers, since that's where _W64 is declared by MinGW64.
5
12013-03-26 Eli Zaretskii <eliz@gnu.org> 62013-03-26 Eli Zaretskii <eliz@gnu.org>
2 7
3 * inc/ms-w32.h (USE_NO_MINGW_SETJMP_TWO_ARGS): Don't define. 8 * inc/ms-w32.h (USE_NO_MINGW_SETJMP_TWO_ARGS): Don't define.
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/>. */
34 installed, then the DDE fallback for creating icons the Windows 3.1 34 installed, then the DDE fallback for creating icons the Windows 3.1
35 progman way will be used instead, but that is prone to lockups 35 progman way will be used instead, but that is prone to lockups
36 caused by other applications not servicing their message queues. */ 36 caused by other applications not servicing their message queues. */
37#include <stdlib.h>
38#include <stdio.h>
39#include <malloc.h>
40
37/* MinGW64 defines _W64 and barfs if _WIN32_IE is defined to anything 41/* MinGW64 defines _W64 and barfs if _WIN32_IE is defined to anything
38 below 0x500. */ 42 below 0x500. */
39#ifndef _W64 43#ifndef _W64
@@ -45,9 +49,6 @@ along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>. */
45#include <windows.h> 49#include <windows.h>
46#include <shlobj.h> 50#include <shlobj.h>
47#include <ddeml.h> 51#include <ddeml.h>
48#include <stdlib.h>
49#include <stdio.h>
50#include <malloc.h>
51 52
52HDDEDATA CALLBACK 53HDDEDATA CALLBACK
53DdeCallback (UINT uType, UINT uFmt, HCONV hconv, 54DdeCallback (UINT uType, UINT uFmt, HCONV hconv,