diff options
| author | Eli Zaretskii | 2013-03-27 09:21:43 +0200 |
|---|---|---|
| committer | Eli Zaretskii | 2013-03-27 09:21:43 +0200 |
| commit | c8e9d2b4ed5e3d8f8e636cd5747dbf9e7d68485e (patch) | |
| tree | bdba2dc3a970d003f4d9d92a6d8c63b54e23eccd | |
| parent | afeee3e5783916f2860d1ab30b17d89b11abccb7 (diff) | |
| download | emacs-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/ChangeLog | 5 | ||||
| -rw-r--r-- | nt/addpm.c | 7 |
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 @@ | |||
| 1 | 2013-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 | |||
| 1 | 2013-03-26 Eli Zaretskii <eliz@gnu.org> | 6 | 2013-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 | ||
| 52 | HDDEDATA CALLBACK | 53 | HDDEDATA CALLBACK |
| 53 | DdeCallback (UINT uType, UINT uFmt, HCONV hconv, | 54 | DdeCallback (UINT uType, UINT uFmt, HCONV hconv, |