From 4797899b24d35873211cf0cd1a2a373e2db3c528 Mon Sep 17 00:00:00 2001 From: Haelwenn (lanodan) Monnier Date: Mon, 29 Dec 2025 21:15:44 +0100 Subject: 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 --- 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 1581076..bdf10f6 100644 --- a/include/fortify-headers.h +++ b/include/fortify-headers.h @@ -68,9 +68,9 @@ #endif #if __has_attribute (format) -#define __format(...) __attribute__ ((format (__VA_ARGS__))) +#define __fortify__format(...) __attribute__ ((format (__VA_ARGS__))) #else -#define __format(...) +#define __fortify__format(...) #endif #if __has_attribute (__diagnose_if) -- cgit v1.3