summaryrefslogtreecommitdiffstats
path: root/programs/platform.h
diff options
context:
space:
mode:
Diffstat (limited to 'programs/platform.h')
-rw-r--r--programs/platform.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/programs/platform.h b/programs/platform.h
index c4b97c8..02ebd4c 100644
--- a/programs/platform.h
+++ b/programs/platform.h
@@ -42,6 +42,9 @@ extern "C" {
# define fseek _fseeki64
# endif
#endif
+#if defined(__MINGW32__) && !defined(_POSIX_SOURCE)
+# define _POSIX_C_SOURCE 1 /* enable __VA_ARGS__ and disable %llu warnings with MinGW on Windows */
+#endif
/* **************************************