diff options
Diffstat (limited to 'include/fortify-headers.h')
| -rw-r--r-- | include/fortify-headers.h | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/include/fortify-headers.h b/include/fortify-headers.h index a9b7498..deff351 100644 --- a/include/fortify-headers.h +++ b/include/fortify-headers.h | |||
| @@ -70,4 +70,15 @@ | |||
| 70 | #define __access(...) | 70 | #define __access(...) |
| 71 | #endif | 71 | #endif |
| 72 | 72 | ||
| 73 | /* This needs to be two different conditions: https://gcc.gnu.org/onlinedocs/cpp/_005f_005fhas_005fattribute.html */ | ||
| 74 | #if defined __has_attribute | ||
| 75 | #if __has_attribute (format) | ||
| 76 | #define __format(...) __attribute__ ((format (__VA_ARGS__))) | ||
| 77 | #else | ||
| 78 | #define __format(...) | ||
| 79 | #endif | ||
| 80 | #else | ||
| 81 | #define __format(...) | ||
| 82 | #endif | ||
| 83 | |||
| 73 | #endif | 84 | #endif |
