diff options
author | Lasse Collin <lasse.collin@tukaani.org> | 2010-10-23 12:26:33 +0300 |
---|---|---|
committer | Lasse Collin <lasse.collin@tukaani.org> | 2010-10-23 12:26:33 +0300 |
commit | e61d85e082743ebd2dd0ff28fc0a82482ede0538 (patch) | |
tree | 0a39eefcd16d901ee2905684a288c6b9cc41964a | |
parent | liblzma: Use 512 as INDEX_GROUP_SIZE. (diff) | |
download | xz-e61d85e082743ebd2dd0ff28fc0a82482ede0538.tar.xz |
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.
-rw-r--r-- | src/common/sysdefs.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/common/sysdefs.h b/src/common/sysdefs.h index 1e138b1c..c74c6212 100644 --- a/src/common/sysdefs.h +++ b/src/common/sysdefs.h @@ -24,6 +24,11 @@ # include <config.h> #endif +// Get standard-compliant stdio functions under MinGW and MinGW-w64. +#ifdef __MINGW32__ +# define __USE_MINGW_ANSI_STDIO 1 +#endif + // size_t and NULL #include <stddef.h> |