瀏覽代碼

Merge pull request #1673 from plntyk/fix_octeon_shine

shine: fix mips64 (octeon) build error
Steven Barth 9 年之前
父節點
當前提交
b213dac379
共有 1 個文件被更改,包括 11 次插入0 次删除
  1. 11
    0
      sound/shine/patches/001-fix_mips64_bswap.patch

+ 11
- 0
sound/shine/patches/001-fix_mips64_bswap.patch 查看文件

@@ -0,0 +1,11 @@
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
+ 
6
+ #ifdef SHINE_BIG_ENDIAN
7
+-#if defined(__GNUC__) && (__GNUC__ > 4 || (__GNUC__ == 4 && __GNUC_MINOR__ >= 2))
8
++#if defined(__GNUC__) && (__GNUC__ > 4 || (__GNUC__ == 4 && __GNUC_MINOR__ >= 8))
9
+ #define bswap_16(x) __builtin_bswap16(x)
10
+ #else
11
+ #define bswap_16(x) ((((x) >> 8) & 0xff) | (((x) & 0xff) << 8))