diff options
author | wm4 <wm4@nowhere> | 2013-11-02 15:20:53 +0100 |
---|---|---|
committer | wm4 <wm4@nowhere> | 2013-11-02 15:20:53 +0100 |
commit | 81c602c7d2889aeb60057977cec7ea4739823989 (patch) | |
tree | b0f3a724c7b12050e97f193468290eed2b87ca77 /ta/ta.h | |
parent | 4d903127ad799e84cc19f8ff4f5c5abf0d35a9a8 (diff) | |
download | mpv-81c602c7d2889aeb60057977cec7ea4739823989.tar.bz2 mpv-81c602c7d2889aeb60057977cec7ea4739823989.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?
Diffstat (limited to 'ta/ta.h')
-rw-r--r-- | ta/ta.h | 6 |
1 files changed, 6 insertions, 0 deletions
@@ -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) |