001-fix_mips64_bswap.patch 413 B

1234567891011
  1. --- a/src/bin/wave.c
  2. +++ b/src/bin/wave.c
  3. @@ -168,7 +168,7 @@ unsigned char wave_open(const char *fnam
  4. }
  5. #ifdef SHINE_BIG_ENDIAN
  6. -#if defined(__GNUC__) && (__GNUC__ > 4 || (__GNUC__ == 4 && __GNUC_MINOR__ >= 2))
  7. +#if defined(__GNUC__) && (__GNUC__ > 4 || (__GNUC__ == 4 && __GNUC_MINOR__ >= 8))
  8. #define bswap_16(x) __builtin_bswap16(x)
  9. #else
  10. #define bswap_16(x) ((((x) >> 8) & 0xff) | (((x) & 0xff) << 8))