Windows: Use MinGW's stdio functions.

The non-standard ones from msvcrt.dll appear to work
most of the time with XZ Utils, but there are some
corner cases where things may go very wrong. So it's
good to use the better replacements provided by
MinGW(-w64) runtime.
This commit is contained in:
Lasse Collin 2010-10-23 12:26:33 +03:00
parent 23e23f1dc0
commit e61d85e082

View File

@ -24,6 +24,11 @@
# include <config.h> # include <config.h>
#endif #endif
// Get standard-compliant stdio functions under MinGW and MinGW-w64.
#ifdef __MINGW32__
# define __USE_MINGW_ANSI_STDIO 1
#endif
// size_t and NULL // size_t and NULL
#include <stddef.h> #include <stddef.h>