freetype-commit
[Top][All Lists]
Advanced

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

[Git][freetype/freetype][master] * src/pcf/pcfutil.c (BSWAP16): Limit cl


From: Alexei Podtelezhnikov (@apodtele)
Subject: [Git][freetype/freetype][master] * src/pcf/pcfutil.c (BSWAP16): Limit clang support.
Date: Sat, 21 Oct 2023 23:14:24 +0000

Alexei Podtelezhnikov pushed to branch master at FreeType / FreeType

Commits:

  • fab53f7b
    by Alexei Podtelezhnikov (Алексей Подтележников) at 2023-10-21T19:08:20-04:00
    * 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.
    

1 changed file:

Changes:

  • src/pcf/pcfutil.c
    ... ... @@ -57,7 +57,7 @@ in this Software without prior written authorization from The Open Group.
    57 57
       }
    
    58 58
     
    
    59 59
     
    
    60
    -#if defined( __clang__ )                                            || \
    
    60
    +#if ( defined( __clang_major__ ) && __clang_major__ >= 5 )          || \
    
    61 61
         ( defined( __GNUC__ )                                          &&  \
    
    62 62
           ( __GNUC__ > 4 || ( __GNUC__ == 4 && __GNUC_MINOR__ >= 8 ) ) )
    
    63 63
     
    


  • reply via email to

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