From 0a0f7d692dec26550f0aba9ae06e6e0ebc8791b9 Mon Sep 17 00:00:00 2001 From: Michael Jeanson Date: Tue, 30 May 2017 15:38:24 -0400 Subject: [PATCH] Port: internal logging print format for mingw MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit Signed-off-by: Michael Jeanson Signed-off-by: Jérémie Galarneau --- include/babeltrace/logging-internal.h | 3 +++ 1 file changed, 3 insertions(+) diff --git a/include/babeltrace/logging-internal.h b/include/babeltrace/logging-internal.h index df21c21e..21e3a0fd 100644 --- a/include/babeltrace/logging-internal.h +++ b/include/babeltrace/logging-internal.h @@ -443,6 +443,9 @@ #if defined(__printflike) #define _BT_LOG_PRINTFLIKE(str_index, first_to_check) \ __printflike(str_index, first_to_check) +#elif defined(__MINGW_PRINTF_FORMAT) + #define _BT_LOG_PRINTFLIKE(str_index, first_to_check) \ + __attribute__((format(__MINGW_PRINTF_FORMAT, str_index, first_to_check))) #elif defined(__GNUC__) #define _BT_LOG_PRINTFLIKE(str_index, first_to_check) \ __attribute__((format(__printf__, str_index, first_to_check))) -- 2.34.1