From 8439dc0d1b986e7652afd78c1462707f4bf90f8b Mon Sep 17 00:00:00 2001 From: jvoisin Date: Mon, 16 Oct 2023 17:48:32 +0200 Subject: Add a check about redefined macros --- include/fortify-headers.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/fortify-headers.h b/include/fortify-headers.h index 46d5610..c7b15f9 100644 --- a/include/fortify-headers.h +++ b/include/fortify-headers.h @@ -94,7 +94,7 @@ #define __malloc(...) #endif -#if __has_attribute (alloc_size) +#if __has_attribute (alloc_size) && !defined(__alloc_size) #define __alloc_size(...) __attribute__ ((alloc_size (__VA_ARGS__))) #else #define __alloc_size(...) -- cgit v1.3