projects
/
babeltrace.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Port: internal logging print format for mingw
[babeltrace.git]
/
include
/
babeltrace
/
logging-internal.h
diff --git
a/include/babeltrace/logging-internal.h
b/include/babeltrace/logging-internal.h
index df21c21ef9ad5eba3cd27322c97dfa2d5f50e195..21e3a0fd09b89b4c4efc31ecfb769860a85cad2c 100644
(file)
--- 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)
#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)))
#elif defined(__GNUC__)
#define _BT_LOG_PRINTFLIKE(str_index, first_to_check) \
__attribute__((format(__printf__, str_index, first_to_check)))
This page took
0.023433 seconds
and
4
git commands to generate.