emacs-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Emacs-diffs] master 6d6dc24: Avoid MinGW64 compilation warning in w32.c


From: Eli Zaretskii
Subject: [Emacs-diffs] master 6d6dc24: Avoid MinGW64 compilation warning in w32.c
Date: Sat, 16 Sep 2017 04:52:11 -0400 (EDT)

branch: master
commit 6d6dc246f93486fc8370399b6e1af8a17f371e4f
Author: Eli Zaretskii <address@hidden>
Commit: Eli Zaretskii <address@hidden>

    Avoid MinGW64 compilation warning in w32.c
    
    * src/w32.c (sys_strerror): Provide a prototype for MinGW64.
---
 src/w32.c | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/src/w32.c b/src/w32.c
index f583d5e..eb531aa 100644
--- a/src/w32.c
+++ b/src/w32.c
@@ -82,6 +82,10 @@ int sys_dup2 (int, int);
 int sys_read (int, char *, unsigned int);
 int sys_write (int, const void *, unsigned int);
 struct tm *sys_localtime (const time_t *);
+/* MinGW64 system headers include string.h too early, causing the
+   compiler to emit a warning about sys_strerror having no
+   prototype.  */
+char *sys_strerror (int);
 
 #ifdef HAVE_MODULES
 extern void dynlib_reset_last_error (void);



reply via email to

[Prev in Thread] Current Thread [Next in Thread]