ref: 36f3f6222e7e48a79958b181b7f9e617be1b5c9e
parent: f930bf895924ffacfbe88662f139508aaf1cc337
parent: 8e28afb1d0ccc92d47cb852401049b5bca9be9ba
author: Krzysztof Nikiel <knik0@users.noreply.github.com>
date: Thu Dec 21 07:36:25 EST 2017
Merge pull request #9 from ccawley2011/gcc-4.7.4 Fix compilation with GCC 4.7.4
--- a/frontend/mp4read.c
+++ b/frontend/mp4read.c
@@ -64,8 +64,10 @@
#ifndef WORDS_BIGENDIAN
#ifdef _MSC_VER
return _byteswap_ushort(u16);
-#else
+#elif __GNUC__ > 4 || (__GNUC__ == 4 && __GNUC_MINOR__ >= 8)
return __builtin_bswap16(u16);
+#else
+ return (u16<<8)|(u16>>8);
#endif
#else
return u16;