From 7ac0d906155984c5a4406a1a1634543038e5337a Mon Sep 17 00:00:00 2001 From: Patrick Gaskin Date: Sun, 3 Jan 2021 04:07:07 -0500 Subject: [PATCH] win32: Use __MINGW_PRINTF_FORMAT instead of __printf__ for MinGW builds Part-of: --- src/pulse/gccmacro.h | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/src/pulse/gccmacro.h b/src/pulse/gccmacro.h index 81729db..4a0fff5 100644 --- a/src/pulse/gccmacro.h +++ b/src/pulse/gccmacro.h @@ -25,10 +25,8 @@ #if defined(__GNUC__) #ifdef __MINGW32__ -/* libintl overrides printf with a #define. As this breaks this attribute, - * it has a workaround. However the workaround isn't enabled for MINGW - * builds (only cygwin) */ -#define PA_GCC_PRINTF_ATTR(a,b) __attribute__ ((format (__printf__, a, b))) +#include +#define PA_GCC_PRINTF_ATTR(a,b) __attribute__ ((format (__MINGW_PRINTF_FORMAT, a, b))) #else #define PA_GCC_PRINTF_ATTR(a,b) __attribute__ ((format (printf, a, b))) #endif -- 2.7.4