From 8c2352b985b1bf69efb965ba15f5e300eb7e8e12 Mon Sep 17 00:00:00 2001 From: jvoisin Date: Thu, 21 Sep 2023 15:50:32 +0200 Subject: Properly enable diagnose_as_builtin attribute --- include/fortify-headers.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'include/fortify-headers.h') diff --git a/include/fortify-headers.h b/include/fortify-headers.h index bc7bf00..46d5610 100644 --- a/include/fortify-headers.h +++ b/include/fortify-headers.h @@ -100,8 +100,8 @@ #define __alloc_size(...) #endif -#if __has_attribute (__diagnose_as_builtin) -#define __diagnose_as_builtin(...) __attribute__ ((__diagnose_as_builtin (__VA_ARGS__))) +#if __has_attribute (diagnose_as_builtin) +#define __diagnose_as_builtin(...) __attribute__ ((diagnose_as_builtin (__VA_ARGS__))) #else #define __diagnose_as_builtin(...) #endif -- cgit v1.3