commit fa01a693ae41beda27dbf0948bd30bc8b57d90fc parent f66db750ed01f52707a37e05d86af4f59019f473 Author: jvoisin <julien.voisin@dustri.org> Date: Fri, 13 Mar 2026 01:21:30 +0100 Improve portability for compilers without __has_attribute Diffstat:
| M | include/fortify-headers.h | | | 6 | ++++++ |
1 file changed, 6 insertions(+), 0 deletions(-)
diff --git a/include/fortify-headers.h b/include/fortify-headers.h @@ -79,6 +79,12 @@ #define __fortify_warning_if(cond, msg) #endif +#else /* ! __has_attribute */ + +#define __fortify_access(...) +#define __fortify__format(...) +#define __fortify_warning_if(cond, msg) + #endif #endif