From: Michael Jeanson Date: Tue, 30 May 2017 19:38:24 +0000 (-0400) Subject: Port: internal logging print format for mingw X-Git-Tag: v2.0.0-pre1~76 X-Git-Url: http://git.efficios.com/?p=babeltrace.git;a=commitdiff_plain;h=0a0f7d692dec26550f0aba9ae06e6e0ebc8791b9 Port: internal logging print format for mingw Signed-off-by: Michael Jeanson Signed-off-by: Jérémie Galarneau --- 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)))