[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Emacs-diffs] /srv/bzr/emacs/trunk r112153: Avoid MinGW64 compiler warni
From: |
Eli Zaretskii |
Subject: |
[Emacs-diffs] /srv/bzr/emacs/trunk r112153: Avoid MinGW64 compiler warnings. |
Date: |
Wed, 27 Mar 2013 10:40:24 +0200 |
User-agent: |
Bazaar (2.5.0) |
------------------------------------------------------------
revno: 112153
committer: Eli Zaretskii <address@hidden>
branch nick: trunk
timestamp: Wed 2013-03-27 10:40:24 +0200
message:
Avoid MinGW64 compiler warnings.
nt/inc/ms-w32.h (sys_localtime) [_W64]: Provide a prototype, to
avoid MinGW64 compiler warnings in editfns.c.
modified:
nt/ChangeLog
nt/inc/ms-w32.h
=== modified file 'nt/ChangeLog'
--- a/nt/ChangeLog 2013-03-27 08:31:16 +0000
+++ b/nt/ChangeLog 2013-03-27 08:40:24 +0000
@@ -1,5 +1,8 @@
2013-03-27 Eli Zaretskii <address@hidden>
+ * 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.
=== modified file 'nt/inc/ms-w32.h'
--- a/nt/inc/ms-w32.h 2013-03-26 20:30:43 +0000
+++ b/nt/inc/ms-w32.h 2013-03-27 08:40:24 +0000
@@ -161,6 +161,10 @@
/* 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. */
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Emacs-diffs] /srv/bzr/emacs/trunk r112153: Avoid MinGW64 compiler warnings.,
Eli Zaretskii <=