aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorEli Zaretskii2013-03-26 16:04:07 +0200
committerEli Zaretskii2013-03-26 16:04:07 +0200
commit8f5e14c849415e68add0e617277ffa33325b5593 (patch)
treee8839f4dc8bb6133b2b30b0b5cd61a8c64864307 /src
parentda9dcbb87ffea0808a9ff2cd91fe052ee6ead961 (diff)
downloademacs-8f5e14c849415e68add0e617277ffa33325b5593.tar.gz
emacs-8f5e14c849415e68add0e617277ffa33325b5593.zip
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'.
Diffstat (limited to 'src')
-rw-r--r--src/ChangeLog2
-rw-r--r--src/w32.c2
2 files changed, 3 insertions, 1 deletions
diff --git a/src/ChangeLog b/src/ChangeLog
index a676dd8f160..ce0455a4981 100644
--- a/src/ChangeLog
+++ b/src/ChangeLog
@@ -4,6 +4,8 @@
4 Define only for _WIN32_WINNT less than 0x0500. 4 Define only for _WIN32_WINNT less than 0x0500.
5 (_ANONYMOUS_UNION, _ANONYMOUS_STRUCT) [!_W64]: Don't define for 5 (_ANONYMOUS_UNION, _ANONYMOUS_STRUCT) [!_W64]: Don't define for
6 MinGW64. 6 MinGW64.
7 Move inclusion of time.h before sys/time.h, so that MinGW64 could
8 see its own definitions of 'struct timeval' and 'struct timezone'.
7 9
8 Fix incompatibilities between MinGW.org and MinGW64 headers. 10 Fix incompatibilities between MinGW.org and MinGW64 headers.
9 * w32term.c (WCRANGE, GLYPHSET): Don't define if _W64 is defined. 11 * 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 <http://www.gnu.org/licenses/>. */
29#include <ctype.h> 29#include <ctype.h>
30#include <signal.h> 30#include <signal.h>
31#include <sys/file.h> 31#include <sys/file.h>
32#include <time.h> /* must be before nt/inc/sys/time.h, for MinGW64 */
32#include <sys/time.h> 33#include <sys/time.h>
33#include <sys/utime.h> 34#include <sys/utime.h>
34#include <math.h> 35#include <math.h>
35#include <time.h>
36 36
37/* must include CRT headers *before* config.h */ 37/* must include CRT headers *before* config.h */
38 38