From 8c514af56ce0967b86dfeb4bdeeb88e23421d22c Mon Sep 17 00:00:00 2001 From: diego Date: Sun, 24 Feb 2008 18:21:41 +0000 Subject: Wrap HAVE_XXX macros with RUNTIME_CPUDETECT, because when RUNTIME_CPUDETECT is enabled, checking HAVE_XXX and disabling that CPU feature is meaningless. patch by KO Myung-Hun, komh chollian net git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@26094 b3059339-0415-0410-9bf9-f77b7e298cf2 --- cpudetect.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'cpudetect.c') diff --git a/cpudetect.c b/cpudetect.c index c3cbe41254..933f394d49 100644 --- a/cpudetect.c +++ b/cpudetect.c @@ -202,6 +202,7 @@ void GetCpuCaps( CpuCaps *caps) // caps->hasMMX2 = 0; // caps->hasMMX = 0; +#ifndef RUNTIME_CPUDETECT #ifndef HAVE_MMX if(caps->hasMMX) mp_msg(MSGT_CPUDETECT,MSGL_WARN,"MMX supported but disabled\n"); caps->hasMMX=0; @@ -226,6 +227,7 @@ void GetCpuCaps( CpuCaps *caps) if(caps->has3DNowExt) mp_msg(MSGT_CPUDETECT,MSGL_WARN,"3DNowExt supported but disabled\n"); caps->has3DNowExt=0; #endif +#endif // RUNTIME_CPUDETECT } -- cgit v1.2.3