mirror of
https://github.com/storytold/harfbuzz.git
synced 2026-11-22 07:21:06 +01:00
Limit __builtin_bswap16 to GCC >= 5 as it was implemented on 4.8
This commit is contained in:
1 parent
ac0264717b
commit
e7bd29ea11
1 file changed
+1
-1
+1
-1
@@ -721,7 +721,7 @@ struct BEInt<Type, 2>
|
||||
}
|
||||
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; };
|
||||
|
||||
Reference in new issue
Block a user