summaryrefslogtreecommitdiff
path: root/src/utils/cpu.cpp
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2013-09-26 00:05:17 +0300
committerAndrei Karas <akaras@inbox.ru>2013-09-26 00:05:17 +0300
commit066cb740fb8766d4adb8319b97f5f86d3a33651e (patch)
tree8bf5cbd693b23df0183b0c9a515ed035a433abdc /src/utils/cpu.cpp
parent136a97e5cc3499077af7b37ba6cc6a5a00f52e75 (diff)
downloadplus-066cb740fb8766d4adb8319b97f5f86d3a33651e.tar.gz
plus-066cb740fb8766d4adb8319b97f5f86d3a33651e.tar.bz2
plus-066cb740fb8766d4adb8319b97f5f86d3a33651e.tar.xz
plus-066cb740fb8766d4adb8319b97f5f86d3a33651e.zip
fix compilation on Android.
Diffstat (limited to 'src/utils/cpu.cpp')
-rw-r--r--src/utils/cpu.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/utils/cpu.cpp b/src/utils/cpu.cpp
index e4615b4dd..6dfd5a98c 100644
--- a/src/utils/cpu.cpp
+++ b/src/utils/cpu.cpp
@@ -30,7 +30,7 @@ int mCpuFlags = 0;
void Cpu::detect()
{
-#if defined(__GNUC__) && (GCC_VERSION >= 40800)
+#if defined(__GNUC__) && (GCC_VERSION >= 40800) && !defined(ANDROID)
__builtin_cpu_init();
if (__builtin_cpu_supports ("mmx"))
mCpuFlags |= FEATURE_MMX;