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?
This commit is contained in:
wm4 2013-11-02 15:20:53 +01:00
parent 504c452568
commit 854cdb796e
1 changed files with 6 additions and 0 deletions

View File

@ -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)