aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/common/sysdefs.h5
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>