summaryrefslogtreecommitdiffstats
path: root/cpudetect.h
diff options
context:
space:
mode:
authormichael <michael@b3059339-0415-0410-9bf9-f77b7e298cf2>2001-11-26 23:08:48 +0000
committermichael <michael@b3059339-0415-0410-9bf9-f77b7e298cf2>2001-11-26 23:08:48 +0000
commit43e976286203bfdbbf3d484811517ea6f7e5c9e9 (patch)
tree72099a1905cbd38f5b92080c062b132f0b565647 /cpudetect.h
parent0a103eef42e6cf4ffaf3c14c5b0ac471441a01b5 (diff)
downloadmpv-43e976286203bfdbbf3d484811517ea6f7e5c9e9.tar.bz2
mpv-43e976286203bfdbbf3d484811517ea6f7e5c9e9.tar.xz
non x86 fix (otherwise we would need #ifdef ARCH_X86 around every if(gCpuCaps.has...))
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@3147 b3059339-0415-0410-9bf9-f77b7e298cf2
Diffstat (limited to 'cpudetect.h')
-rw-r--r--cpudetect.h6
1 files changed, 4 insertions, 2 deletions
diff --git a/cpudetect.h b/cpudetect.h
index 868e6720c5..ccdfb246e8 100644
--- a/cpudetect.h
+++ b/cpudetect.h
@@ -1,4 +1,5 @@
-#ifdef ARCH_X86
+#ifndef CPUDETECT_H
+#define CPUDETECT_H
#define CPUTYPE_I386 3
#define CPUTYPE_I486 4
@@ -13,6 +14,7 @@ typedef struct cpucaps_s {
int has3DNowExt;
int hasSSE;
int hasSSE2;
+ int isX86;
} CpuCaps;
extern CpuCaps gCpuCaps;
@@ -22,5 +24,5 @@ void GetCpuCaps(CpuCaps *caps);
/* returned value is malloc()'ed so free() it after use */
char *GetCpuFriendlyName(unsigned int regs[], unsigned int regs2[]);
-#endif /* ARCH_X86 */
+#endif /* !CPUDETECT_H */