[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Emacs-diffs] master bb2ef5c: Avoid compilation warning on MinGW
From: |
Eli Zaretskii |
Subject: |
[Emacs-diffs] master bb2ef5c: Avoid compilation warning on MinGW |
Date: |
Sat, 1 Oct 2016 07:14:07 +0000 (UTC) |
branch: master
commit bb2ef5c6f7058b149adc9230a3db7d1fbd423c51
Author: Eli Zaretskii <address@hidden>
Commit: Eli Zaretskii <address@hidden>
Avoid compilation warning on MinGW
* src/w32.c: Include string.h, needed for the prototype of
'strerror', shadowed by 'sys_strerror'. This avoids a compiler
warning about "no previous prototype". The string.h header
must be included after ms-w32.h, but before "#undef strerror".
---
src/w32.c | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/src/w32.c b/src/w32.c
index e0a3406..f911085 100644
--- a/src/w32.c
+++ b/src/w32.c
@@ -40,9 +40,10 @@ along with GNU Emacs. If not, see
<http://www.gnu.org/licenses/>. */
#include <sys/utime.h>
#include <math.h>
-/* Include CRT headers *before* ms-w32.h. */
+/* Include (most) CRT headers *before* ms-w32.h. */
#include <ms-w32.h>
+#include <string.h> /* for strerror, needed by sys_strerror */
#include <mbstring.h> /* for _mbspbrk, _mbslwr, _mbsrchr, ... */
#undef access
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Emacs-diffs] master bb2ef5c: Avoid compilation warning on MinGW,
Eli Zaretskii <=