diff options
Diffstat (limited to 'lib/portability.h')
-rw-r--r-- | lib/portability.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/portability.h b/lib/portability.h index 70e33bf6..809f376c 100644 --- a/lib/portability.h +++ b/lib/portability.h @@ -11,8 +11,10 @@ #ifdef __GNUC__ #define noreturn __attribute__((noreturn)) +#define printf_format __attribute__((format(printf, 1, 2))) #else #define noreturn +#define printf_format #endif // Always use long file support. |