Fix more incompatibilities between MinGW.org and MinGW64 headers
authorEli Zaretskii <eliz@gnu.org>
Tue, 26 Mar 2013 08:21:27 +0000 (10:21 +0200)
committerEli Zaretskii <eliz@gnu.org>
Tue, 26 Mar 2013 08:21:27 +0000 (10:21 +0200)
commitb88b62dec99cec327c6bae67ef4d3a8bc5b601ca
tree2d3d5acaabe9d9e124c90bfae57bddf3dc355c19
parent69b2c07eaf592dee54ccd9bdb5f38dce88d1f221
Fix more incompatibilities between MinGW.org and MinGW64 headers

Reported by ×ƒscar Fuentes in
  http://lists.gnu.org/archive/html/emacs-devel/2013-03/msg00699.html
and in
  http://lists.gnu.org/archive/html/emacs-devel/2013-03/msg00707.html.

 nt/inc/ms-w32.h (USE_NO_MINGW_SETJMP_TWO_ARGS) [_W64]: Define to 1.
 For MinGW64, include sys/types.h and time.h.
 nt/inc/sys/time.h (struct timeval) [!_W64]: Guard definition with _W64.
 (struct timezone) [!_TIMEZONE_DEFINED]: Guard definition with
 _TIMEZONE_DEFINED.
 nt/addpm.c (_WIN32_IE) [_W64]: For MinGW64, don't define to 0x400.
 nt/inc/sys/stat.h: Remove _CRTIMP from prototypes of fstat, stat,
 lstat, and fstatat.

 lib-src/ntlib.c (struct timespec) [!_TIMEZONE_DEFINED]: Define the
 struct only if _TIMEZONE_DEFINED is not defined.

 src/w32term.c (WCRANGE, GLYPHSET): Don't define if _W64 is defined.
 src/w32.c (REPARSE_DATA_BUFFER): Guard with
 MAXIMUM_REPARSE_DATA_BUFFER_SIZE being defined.
lib-src/ChangeLog
lib-src/ntlib.c
nt/ChangeLog
nt/addpm.c
nt/inc/ms-w32.h
nt/inc/sys/stat.h
nt/inc/sys/time.h
src/ChangeLog
src/w32.c
src/w32term.c