diff options
-rw-r--r-- | src/commonlib/bsd/include/commonlib/bsd/compiler.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/commonlib/bsd/include/commonlib/bsd/compiler.h b/src/commonlib/bsd/include/commonlib/bsd/compiler.h index 87ac0c4aed..6bde28db0e 100644 --- a/src/commonlib/bsd/include/commonlib/bsd/compiler.h +++ b/src/commonlib/bsd/include/commonlib/bsd/compiler.h @@ -58,6 +58,10 @@ #define __fallthrough __attribute__((__fallthrough__)) #endif +#ifndef __printf +#define __printf(a, b) __attribute__((format(printf, a, b))) +#endif + /* * This evaluates to the type of the first expression, unless that is constant * in which case it evaluates to the type of the second. This is useful when |