windows: Include <sys/stat.h> explicitly before overloading memset()/memcpy()
fstat() in newer MinGWs is defined as non-static inline. With our new static inline memset()/memcpy() overloads, this raises a warning. To avoid it, explicitly include <sys/stat.h> once before defining these overloads.
This commit is contained in:
parent
fc8ca5f2f2
commit
07b57e203b
|
@ -26,6 +26,7 @@
|
|||
#include <direct.h>
|
||||
#include <inttypes.h>
|
||||
#include <unistd.h>
|
||||
#include <sys/stat.h>
|
||||
|
||||
/* undef Windows variants evaluating values more than once */
|
||||
#undef min
|
||||
|
|
Loading…
Reference in New Issue