aboutsummaryrefslogtreecommitdiffstats
path: root/Alc
diff options
context:
space:
mode:
authorChris Robinson <[email protected]>2014-08-11 13:38:43 -0700
committerChris Robinson <[email protected]>2014-08-11 13:38:43 -0700
commite3ee534c3961c4a7c9961019a242693e0da402ef (patch)
tree05c66a83cd52fd29307b60766c680c1c86b703c8 /Alc
parent8ecbeb4945441ed4d797905ee1c609c163dcd51b (diff)
Check for GCC's __get_cpuid before using it
Diffstat (limited to 'Alc')
-rw-r--r--Alc/helpers.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/Alc/helpers.c b/Alc/helpers.c
index dd74ad62..22e99d7e 100644
--- a/Alc/helpers.c
+++ b/Alc/helpers.c
@@ -107,8 +107,8 @@ void FillCPUCaps(ALuint capfilter)
/* FIXME: We really should get this for all available CPUs in case different
* CPUs have different caps (is that possible on one machine?). */
-#if defined(HAVE_CPUID_H) && (defined(__i386__) || defined(__x86_64__) || \
- defined(_M_IX86) || defined(_M_X64))
+#if defined(HAVE_GCC_GET_CPUID) && (defined(__i386__) || defined(__x86_64__) || \
+ defined(_M_IX86) || defined(_M_X64))
union {
unsigned int regs[4];
char str[sizeof(unsigned int[4])];