X-Git-Url: http://git.efficios.com/?a=blobdiff_plain;ds=sidebyside;f=include%2Fbabeltrace%2Flogging-internal.h;fp=include%2Fbabeltrace%2Flogging-internal.h;h=ffcf1cdcf6fa3b0019a844753bc33ba180ffc9d5;hb=995dc21f6bf37f76a75e2b77a64207f3d2d24156;hp=1480a0829c12335f485d2b5e4db186bd4947fa60;hpb=32e87cebe6d26aefcff30cf542fb11f33a3ed7ea;p=babeltrace.git diff --git a/include/babeltrace/logging-internal.h b/include/babeltrace/logging-internal.h index 1480a082..ffcf1cdc 100644 --- a/include/babeltrace/logging-internal.h +++ b/include/babeltrace/logging-internal.h @@ -434,9 +434,13 @@ #endif #if defined(__printflike) - #define _BT_LOG_PRINTFLIKE(a, b) __printflike(a, b) + #define _BT_LOG_PRINTFLIKE(str_index, first_to_check) \ + __printflike(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))) #else - #define _BT_LOG_PRINTFLIKE(a, b) + #define _BT_LOG_PRINTFLIKE(str_index, first_to_check) #endif #if (defined(_WIN32) || defined(_WIN64)) && !defined(__GNUC__)