projects
/
platform
/
upstream
/
xz.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
23e23f1
)
Windows: Use MinGW's stdio functions.
author
Lasse Collin
<lasse.collin@tukaani.org>
Sat, 23 Oct 2010 09:26:33 +0000
(12:26 +0300)
committer
Lasse Collin
<lasse.collin@tukaani.org>
Sat, 23 Oct 2010 09:26:33 +0000
(12:26 +0300)
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.
src/common/sysdefs.h
patch
|
blob
|
history
diff --git
a/src/common/sysdefs.h
b/src/common/sysdefs.h
index
1e138b1
..
c74c621
100644
(file)
--- 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>