From cf7442d638114899d8fec51d7d71ac2a9c24cca9 Mon Sep 17 00:00:00 2001 From: Erik de Castro Lopo Date: Sun, 12 Jul 2015 12:08:18 +1000 Subject: [PATCH] libFLAC/cpu.c: Assume Android has SSE According to https://developer.android.com/ndk/guides/abis.html#x86 Android always support SSE, so there's no need to test SSE OS support. Why both __ANDROID__ and ANDROID are tested: http://stackoverflow.com/questions/15328751/android-macro-suddenly-not-defined http://stackoverflow.com/questions/6374523/how-to-detect-compilation-by-android-ndk-in-a-c-c-file https://groups.google.com/forum/#!topic/android-ndk/cf9_f1SLXls Patch-from: lvqcl --- src/libFLAC/cpu.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/libFLAC/cpu.c b/src/libFLAC/cpu.c index 40c79509..8249500b 100644 --- a/src/libFLAC/cpu.c +++ b/src/libFLAC/cpu.c @@ -240,6 +240,8 @@ void FLAC__cpu_info(FLAC__CPUInfo *info) # else disable_sse(info); # endif +#elif defined(__ANDROID__) || defined(ANDROID) + /* no need to check OS SSE support */ #elif defined(__linux__) int sse = 0; struct sigaction sigill_save;