From 8f5e14c849415e68add0e617277ffa33325b5593 Mon Sep 17 00:00:00 2001 From: Eli Zaretskii Date: Tue, 26 Mar 2013 16:04:07 +0200 Subject: [PATCH] More MinGW64 fixes. src/w32.c Move inclusion of time.h before sys/time.h, so that MinGW64 could see its own definitions of 'struct timeval' and 'struct timezone'. --- src/ChangeLog | 2 ++ src/w32.c | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/src/ChangeLog b/src/ChangeLog index a676dd8f160..ce0455a4981 100644 --- a/src/ChangeLog +++ b/src/ChangeLog @@ -4,6 +4,8 @@ Define only for _WIN32_WINNT less than 0x0500. (_ANONYMOUS_UNION, _ANONYMOUS_STRUCT) [!_W64]: Don't define for MinGW64. + Move inclusion of time.h before sys/time.h, so that MinGW64 could + see its own definitions of 'struct timeval' and 'struct timezone'. Fix incompatibilities between MinGW.org and MinGW64 headers. * w32term.c (WCRANGE, GLYPHSET): Don't define if _W64 is defined. diff --git a/src/w32.c b/src/w32.c index 861e578985d..f3c98bf9596 100644 --- a/src/w32.c +++ b/src/w32.c @@ -29,10 +29,10 @@ along with GNU Emacs. If not, see . */ #include #include #include +#include /* must be before nt/inc/sys/time.h, for MinGW64 */ #include #include #include -#include /* must include CRT headers *before* config.h */ -- 2.39.2