We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
gnu_printf
printf
1 parent 944a344 commit fb264f5Copy full SHA for fb264f5
src/printf/printf.h
@@ -49,8 +49,13 @@ extern "C" {
49
#endif
50
51
#ifdef __GNUC__
52
+# if ((__GNUC__ == 4 && __GNUC_MINOR__>= 4) || __GNUC__ > 4)
53
+# define ATTR_PRINTF(one_based_format_index, first_arg) \
54
+__attribute__((format(gnu_printf, (one_based_format_index), (first_arg))))
55
+# else
56
# define ATTR_PRINTF(one_based_format_index, first_arg) \
-__attribute__((format(__printf__, (one_based_format_index), (first_arg))))
57
+__attribute__((format(printf, (one_based_format_index), (first_arg))))
58
+# endif
59
# define ATTR_VPRINTF(one_based_format_index) ATTR_PRINTF((one_based_format_index), 0)
60
#else
61
# define ATTR_PRINTF(one_based_format_index, first_arg)
0 commit comments