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:
parent
25dca60d5e
commit
bb2ef5c6f7
1 changed files with 2 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Reference in a new issue