diff th_util.h @ 746:a557d1b2a356

Move TH_ATTR_PRINTF_FMT macro definition to th_types.h and improve the preprocessor checks. Apparently newer versions (not sure since which version exactly) seem to work fine with the attribute defined. Enabling for MinGW GCC >= 12 for now, though it may have worked earlier.
author Matti Hamalainen <ccr@tnsp.org>
date Wed, 21 Dec 2022 13:19:02 +0200
parents b415b70254fa
children db1a132c7754
line wrap: on
line diff
--- a/th_util.h	Wed Dec 21 13:17:20 2022 +0200
+++ b/th_util.h	Wed Dec 21 13:19:02 2022 +0200
@@ -39,14 +39,6 @@
 #endif
 
 
-// Kludge, as MinGW64 cross-compiler does not like certain printf() format specifiers
-#if defined(__MINGW64__)
-#  define TH_ATTR_PRINTF_FMT(xstart, xend)
-#else
-#  define TH_ATTR_PRINTF_FMT(xstart, xend) __attribute__ ((__format__ (__printf__, (xstart), (xend))))
-#endif
-
-
 // Replacement for assert()
 #ifdef HAVE_NO_ASSERT
 #  ifdef NDEBUG