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".
This commit is contained in:
Eli Zaretskii 2016-10-01 10:12:53 +03:00
parent 25dca60d5e
commit bb2ef5c6f7

View file

@ -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