freetype-commit
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[freetype2] master fab53f7b1: * src/pcf/pcfutil.c (BSWAP16): Limit clang


From: Werner Lemberg
Subject: [freetype2] master fab53f7b1: * src/pcf/pcfutil.c (BSWAP16): Limit clang support.
Date: Sat, 21 Oct 2023 19:14:32 -0400 (EDT)

branch: master
commit fab53f7b1fd7c49ad71f2ab42581569ed7d4e20f
Author: Alexei Podtelezhnikov <apodtele@gmail.com>
Commit: Alexei Podtelezhnikov <apodtele@gmail.com>

    * 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 ) ) )
 



reply via email to

[Prev in Thread] Current Thread [Next in Thread]