Add GCC printf format string attribute

This commit is contained in:
Turo Lamminen 2018-02-14 10:40:40 +02:00
parent f8235983b8
commit 58e56f14a0

View file

@ -66,10 +66,12 @@
#endif
#define PRINTF_ATTR(fmt, first) __attribute__((format(printf, fmt, first)))
#define PRINTF_ARG_ATTR(x) __attribute__((format_arg(x)))
#else
#define PACKEDATTR
#define PRINTF_ATTR(fmt, first)
#define PRINTF_ARG_ATTR(x)
#endif
#ifdef __WATCOMC__