From fab53f7b1fd7c49ad71f2ab42581569ed7d4e20f Mon Sep 17 00:00:00 2001 From: Alexei Podtelezhnikov Date: Sat, 21 Oct 2023 19:08:20 -0400 Subject: [PATCH] * src/pcf/pcfutil.c (BSWAP16): Limit clang support. These ancient builtins have been supported by clang since 2013. We condition it somewhat stricter but still around 2017. This is more portable than `__has_builtin`. Fixes #1260. --- src/pcf/pcfutil.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/pcf/pcfutil.c b/src/pcf/pcfutil.c index 957572691..cd26c77ca 100644 --- a/src/pcf/pcfutil.c +++ b/src/pcf/pcfutil.c @@ -57,7 +57,7 @@ in this Software without prior written authorization from The Open Group. } -#if defined( __clang__ ) || \ +#if ( defined( __clang_major__ ) && __clang_major__ >= 5 ) || \ ( defined( __GNUC__ ) && \ ( __GNUC__ > 4 || ( __GNUC__ == 4 && __GNUC_MINOR__ >= 8 ) ) )