From 97e43ea4bb98f3fae87ac8dc8f4335bfaeff5876 Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Thu, 13 Jun 2013 21:33:47 +0300 Subject: Fix compilation for old compilers. --- src/utils/cpu.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/utils') diff --git a/src/utils/cpu.cpp b/src/utils/cpu.cpp index bef0d653d..e967a5672 100644 --- a/src/utils/cpu.cpp +++ b/src/utils/cpu.cpp @@ -32,7 +32,7 @@ int mCpuFlags = 0; void Cpu::detect() { -#ifdef __GNUC__ +#if defined(__GNUC__) && (GCC_VERSION >= 40800) __builtin_cpu_init(); if (__builtin_cpu_supports ("mmx")) mCpuFlags |= FEATURE_MMX; -- cgit v1.2.3-70-g09d2