Avoid MinGW64 compiler warnings.
nt/inc/ms-w32.h (sys_localtime) [_W64]: Provide a prototype, to avoid MinGW64 compiler warnings in editfns.c.
This commit is contained in:
parent
849e8b0160
commit
e0c3eb8913
2 changed files with 7 additions and 0 deletions
|
@ -1,5 +1,8 @@
|
|||
2013-03-27 Eli Zaretskii <eliz@gnu.org>
|
||||
|
||||
* inc/ms-w32.h (sys_localtime) [_W64]: Provide a prototype, to
|
||||
avoid MinGW64 compiler warnings in editfns.c.
|
||||
|
||||
Fix rules for parallel builds.
|
||||
* makefile.w32-in (ALL): Depend on *.exe files, not on phony names
|
||||
without the .exe suffix.
|
||||
|
|
|
@ -161,6 +161,10 @@ extern char *getenv ();
|
|||
/* Make sure 'struct timespec' and 'struct timezone' are defined. */
|
||||
#include <sys/types.h>
|
||||
#include <time.h>
|
||||
/* This prototype avoids MinGW64 compiler warnings due to the fact
|
||||
that time.h is included before localtime is redirected to
|
||||
sys_localtime below. */
|
||||
extern struct tm * sys_localtime (const time_t *);
|
||||
/* MinGW64 uses a 2-argument _setjmp, and setjmp is a macro defined to
|
||||
supply the 2nd arg correctly, so don't use _setjmp directly in that
|
||||
case. */
|
||||
|
|
Loading…
Add table
Reference in a new issue