From e7bd29ea11bd6301a332b471120a4a2cd8575d09 Mon Sep 17 00:00:00 2001 From: Ebrahim Byagowi Date: Thu, 29 Nov 2018 23:47:20 +0330 Subject: [PATCH] Limit __builtin_bswap16 to GCC >= 5 as it was implemented on 4.8 --- src/hb-machinery.hh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/hb-machinery.hh b/src/hb-machinery.hh index 5f3d153e9..1732d2975 100644 --- a/src/hb-machinery.hh +++ b/src/hb-machinery.hh @@ -721,7 +721,7 @@ struct BEInt } inline operator Type (void) const { -#if defined(__GNUC__) || defined(__clang__) +#if (defined(__GNUC__) && __GNUC__ >= 5) || defined(__clang__) /* Spoon-feed the compiler a big-endian integer with alignment 1. * https://github.com/harfbuzz/harfbuzz/pull/1398 */ struct __attribute__((packed)) packed_uint16_t { uint16_t v; };