Browse code

mips/asmdefs: use _ABI64 as defined by gcc

Unfortunately android < api 21 (lollipop) doesn't have the sgidefs.h header,
the easiest way around this is to just use the preprocessor definitions from
gcc / clang.

Signed-off-by: James Cowgill <james410@cowgill.org.uk>
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
(cherry picked from commit a251aa1a350a1b9d3af07a7948efcc0add8e68ff)

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>

James Cowgill authored on 2015/03/11 23:59:28
Showing 1 changed files
... ...
@@ -27,9 +27,7 @@
27 27
 #ifndef AVUTIL_MIPS_ASMDEFS_H
28 28
 #define AVUTIL_MIPS_ASMDEFS_H
29 29
 
30
-#include <sgidefs.h>
31
-
32
-#if _MIPS_SIM == _ABI64
30
+#if defined(_ABI64) && _MIPS_SIM == _ABI64
33 31
 # define PTRSIZE        " 8 "
34 32
 # define PTRLOG         " 3 "
35 33
 # define PTR_ADDU       "daddu "