From fa01a693ae41beda27dbf0948bd30bc8b57d90fc Mon Sep 17 00:00:00 2001 From: jvoisin Date: Fri, 13 Mar 2026 01:21:30 +0100 Subject: Improve portability for compilers without __has_attribute --- include/fortify-headers.h | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/include/fortify-headers.h b/include/fortify-headers.h index 3dc33b7..a173466 100644 --- 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 -- cgit v1.3