From 81c602c7d2889aeb60057977cec7ea4739823989 Mon Sep 17 00:00:00 2001 From: wm4 Date: Sat, 2 Nov 2013 15:20:53 +0100 Subject: 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? --- ta/ta.h | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/ta/ta.h b/ta/ta.h index 9e378f1902..c8a333f784 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) -- cgit v1.2.3