diff options
| author | Haelwenn (lanodan) Monnier | 2025-12-29 21:15:44 +0100 |
|---|---|---|
| committer | Julien Voisin | 2025-12-30 11:25:44 +0100 |
| commit | 4797899b24d35873211cf0cd1a2a373e2db3c528 (patch) | |
| tree | b8e1059b87e7e582674c54c66f5168d2eb54c7db /include/fortify-headers.h | |
| parent | 611069d07c14bf7ace7a75fa2bc9147db8ac097d (diff) | |
Change __format into __fortify_format to fix conflict with LLVM libcxx
LLVM libcxx (20.1.8) also defines a `__format` macro in it's
C++ locale header (`/usr/include/c++/v1/locale`).
Fixes: https://github.com/jvoisin/fortify-headers/issues/76
Diffstat (limited to 'include/fortify-headers.h')
| -rw-r--r-- | include/fortify-headers.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/include/fortify-headers.h b/include/fortify-headers.h index 1581076..bdf10f6 100644 --- a/include/fortify-headers.h +++ b/include/fortify-headers.h | |||
| @@ -68,9 +68,9 @@ | |||
| 68 | #endif | 68 | #endif |
| 69 | 69 | ||
| 70 | #if __has_attribute (format) | 70 | #if __has_attribute (format) |
| 71 | #define __format(...) __attribute__ ((format (__VA_ARGS__))) | 71 | #define __fortify__format(...) __attribute__ ((format (__VA_ARGS__))) |
| 72 | #else | 72 | #else |
| 73 | #define __format(...) | 73 | #define __fortify__format(...) |
| 74 | #endif | 74 | #endif |
| 75 | 75 | ||
| 76 | #if __has_attribute (__diagnose_if) | 76 | #if __has_attribute (__diagnose_if) |
