From e3ee534c3961c4a7c9961019a242693e0da402ef Mon Sep 17 00:00:00 2001 From: Chris Robinson Date: Mon, 11 Aug 2014 13:38:43 -0700 Subject: Check for GCC's __get_cpuid before using it --- Alc/helpers.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'Alc') 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])]; -- cgit v1.2.3