mirror of
git://git.sv.gnu.org/emacs.git
synced 2025-12-15 10:30:25 -08:00
Attempt to resolve gettimeofday compilation errors with MinGW64.
src/w32.c (gettimeofday): Make the signature identical to prototype in nt/inc/sys/time.h. nt/inc/sys/time.h (struct timeval): Remove the _W64 guards.
This commit is contained in:
parent
22bcd514bc
commit
e2d8a6f0a2
4 changed files with 10 additions and 3 deletions
|
|
@ -8,7 +8,6 @@
|
|||
|
||||
/* The guards are for MinGW64, which defines these structs on its
|
||||
system headers which are included by ms-w32.h. */
|
||||
#ifndef _W64
|
||||
/* Allow inclusion of sys/time.h and winsock2.h in any order. Needed
|
||||
for running the configure test, which is only relevant to MinGW. */
|
||||
#ifndef _TIMEVAL_DEFINED
|
||||
|
|
@ -25,7 +24,6 @@ struct timeval
|
|||
((tvp)->tv_usec cmp (uvp)->tv_usec))
|
||||
#define timerclear(tvp) (tvp)->tv_sec = (tvp)->tv_usec = 0
|
||||
#endif /* _TIMEVAL_DEFINED */
|
||||
#endif /* _W64 */
|
||||
|
||||
#ifndef _TIMEZONE_DEFINED
|
||||
#define _TIMEZONE_DEFINED
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue