* 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.
gsoc-craig-2023-final
Alexei Podtelezhnikov 1 year ago
parent 4e61303a3b
commit fab53f7b1f
  1. 2
      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 ) ) )

Loading…
Cancel
Save