From bb2ef5c6f7058b149adc9230a3db7d1fbd423c51 Mon Sep 17 00:00:00 2001 From: Eli Zaretskii Date: Sat, 1 Oct 2016 10:12:53 +0300 Subject: [PATCH] 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 e0a34060f0a..f9110853799 100644 --- a/src/w32.c +++ b/src/w32.c @@ -40,9 +40,10 @@ along with GNU Emacs. If not, see . */ #include #include -/* Include CRT headers *before* ms-w32.h. */ +/* Include (most) CRT headers *before* ms-w32.h. */ #include +#include /* for strerror, needed by sys_strerror */ #include /* for _mbspbrk, _mbslwr, _mbsrchr, ... */ #undef access -- 2.11.4.GIT