From 16e54cd9ec8b08c7e7f453f35964b77bdf6f32df Mon Sep 17 00:00:00 2001 From: Alejandro Colomar Date: Thu, 7 Aug 2025 14:35:01 +0200 Subject: [PATCH] lib/attr.h: ATTR_STRING(): Use it also with Clang Signed-off-by: Alejandro Colomar --- lib/attr.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/attr.h b/lib/attr.h index 367e6ceca..dbb97082f 100644 --- a/lib/attr.h +++ b/lib/attr.h @@ -46,7 +46,7 @@ # define ATTR_MALLOC(deallocator) #endif -#if (__GNUC__ >= 14) +#if __has_c_attribute(gnu::null_terminated_string_arg) # define ATTR_STRING(i) [[gnu::null_terminated_string_arg(i)]] #else # define ATTR_STRING(i) -- 2.47.3