summaryrefslogtreecommitdiffstats
path: root/cpudetect.h
diff options
context:
space:
mode:
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 */