From: Eli Zaretskii Date: Sat, 1 Oct 2016 07:12:53 +0000 (+0300) Subject: Avoid compilation warning on MinGW X-Git-Tag: emacs-26.0.90~1526 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=bb2ef5c6f7058b149adc9230a3db7d1fbd423c51;p=emacs.git 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". --- 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