changeset 26062:f012754e267c

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
author diego
date Sun, 24 Feb 2008 18:21:41 +0000
parents 6ede4d6afa41
children caf94e545753
files cpudetect.c
diffstat 1 files changed, 2 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/cpudetect.c	Sun Feb 24 18:09:28 2008 +0000
+++ b/cpudetect.c	Sun Feb 24 18:21:41 2008 +0000
@@ -202,6 +202,7 @@
 //		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 @@
 	if(caps->has3DNowExt) mp_msg(MSGT_CPUDETECT,MSGL_WARN,"3DNowExt supported but disabled\n");
 	caps->has3DNowExt=0;
 #endif
+#endif  // RUNTIME_CPUDETECT
 }