From 0e9e5f77cceddf4a1c9a67c1283c3d29a9f2436a Mon Sep 17 00:00:00 2001 From: Erik Hofman Date: Thu, 5 Jul 2018 10:29:03 +0200 Subject: [PATCH] It turns out the 16-bit version was not introduced until gcc-4.8 --- simgear/misc/stdint.hxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/simgear/misc/stdint.hxx b/simgear/misc/stdint.hxx index f52b3d0e..f7031edc 100644 --- a/simgear/misc/stdint.hxx +++ b/simgear/misc/stdint.hxx @@ -21,7 +21,7 @@ using ssize_t = int64_t; // this is a POSIX type, not a C one inline uint16_t sg_bswap_16(uint16_t x) { #if defined(__llvm__) || \ - (__GNUC__ > 4 || (__GNUC__ == 4 && __GNUC_MINOR__ >= 3)) && !defined(__ICC) + (__GNUC__ > 4 || (__GNUC__ == 4 && __GNUC_MINOR__ >= 8)) && !defined(__ICC) return __builtin_bswap16(x); #elif defined(_MSC_VER) && !defined(_DEBUG) return _byteswap_ushort(x);