#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. */
#include <unistd.h> /* for getpid() */
+#ifdef __WIN32__
+#include "win32.h"
+#endif
+
static size_t
utf16le_strlen(const utf16lechar *s)
{