summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorwm4 <wm4@nowhere>2013-11-02 15:20:53 +0100
committerwm4 <wm4@nowhere>2013-11-02 19:06:59 +0100
commit854cdb796e935d0a3cc35eb6d177568f471bdea6 (patch)
tree71d097a2a5d85a625222860f059c088d117f48de
parent504c45256809ddfa6c79dc31e38882d87b86af59 (diff)
downloadmpv-854cdb796e935d0a3cc35eb6d177568f471bdea6.tar.bz2
mpv-854cdb796e935d0a3cc35eb6d177568f471bdea6.tar.xz
ta: re-add MinGW cargo culting
Not really cargo cult, but an unexplainable, needless difference that just exists to annoy us. Fixes that gcc on MinGW treats format specifiers in MSVC mode. Just why? Why?
-rw-r--r--ta/ta.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/ta/ta.h b/ta/ta.h
index 1a9738a9f0..ef78fd59a2 100644
--- a/ta/ta.h
+++ b/ta/ta.h
@@ -26,6 +26,12 @@
#define TA_TYPEOF(t) void *
#endif
+// Broken crap with __USE_MINGW_ANSI_STDIO
+#ifdef __MINGW32__
+#undef TA_PRF
+#define TA_PRF(a1, a2) __attribute__ ((format (gnu_printf, a1, a2)))
+#endif
+
#define TA_STRINGIFY_(x) # x
#define TA_STRINGIFY(x) TA_STRINGIFY_(x)