mirror of
https://git.tukaani.org/xz.git
synced 2024-04-04 12:36:23 +02:00
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:
parent
23e23f1dc0
commit
e61d85e082
1 changed files with 5 additions and 0 deletions
|
@ -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>
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue