X-Git-Url: https://wimlib.net/git/?a=blobdiff_plain;f=src%2Futil.c;h=b688ac216f4be3e490480d220984bea5833af0b8;hb=3f9b53a4a214a254bb27ed30994faf2a0fd12375;hp=07d5fc6b569bcb6bd14396e75b20f7f79a8bac0a;hpb=650997e4865a090b6856c7ca34b02f42994e8e29;p=wimlib diff --git a/src/util.c b/src/util.c index 07d5fc6b..b688ac21 100644 --- a/src/util.c +++ b/src/util.c @@ -23,8 +23,6 @@ #include "config.h" -#define MINGW_HAS_SECURE_API - #undef _GNU_SOURCE /* Make sure the POSIX-compatible strerror_r() is declared, rather than the GNU * version, which has a different return type. */ @@ -43,6 +41,10 @@ #include /* for getpid() */ +#ifdef __WIN32__ +#include "win32.h" +#endif + static size_t utf16le_strlen(const utf16lechar *s) {