diff options
author | Chris Robinson <[email protected]> | 2012-10-08 00:43:51 -0700 |
---|---|---|
committer | Chris Robinson <[email protected]> | 2012-10-08 00:43:51 -0700 |
commit | a98361ebbe62bf3d222b01aa018fe7ada6ef4332 (patch) | |
tree | edc47ed67da026f4fb7f28701864faf92ee84084 /Alc/helpers.c | |
parent | 999f0783c5e88ddbcdf258a560814471538bba1f (diff) |
Don't assume x86 or x64 to use IsProcessorFeaturePresent
Diffstat (limited to 'Alc/helpers.c')
-rw-r--r-- | Alc/helpers.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/Alc/helpers.c b/Alc/helpers.c index d99a70e6..963ead67 100644 --- a/Alc/helpers.c +++ b/Alc/helpers.c @@ -73,10 +73,10 @@ void FillCPUCaps(ALuint capfilter) { ALuint caps = 0; -#if defined(__i386__) || defined(__x86_64__) || defined(_M_IX86) || defined(_M_X64) /* FIXME: We really should get this for all available CPUs in case different * CPUs have different caps (is that possible on one machine?). */ -#ifdef HAVE_CPUID_H +#if defined(HAVE_CPUID_H) && (defined(__i386__) || defined(__x86_64__) || \ + defined(_M_IX86) || defined(_M_X64)) union { unsigned int regs[4]; char str[sizeof(unsigned int[4])]; @@ -121,7 +121,6 @@ void FillCPUCaps(ALuint capfilter) caps |= CPU_CAP_SSE; } #endif -#endif #ifdef HAVE_NEON /* Assume Neon support if compiled with it */ caps |= CPU_CAP_NEON; |