Add GCC printf format string attribute
This commit is contained in:
parent
f8235983b8
commit
58e56f14a0
1 changed files with 2 additions and 0 deletions
|
|
@ -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__
|
||||
|
|
|
|||
Loading…
Reference in a new issue