Fixed compiler error: also check for __PIC__ define for compilers that only use the uppercase version.
git-svn-id: http://voip.null.ro/svn/yate@4974 acf43c95-373e-0410-b603-e72c3f656dc1
This commit is contained in:
parent
35032fc597
commit
a5e5ae88dc
|
@ -29,7 +29,7 @@ int GetCPUInfoNoASM(CPUFeature feature) {
|
|||
#if defined(WEBRTC_ARCH_X86_FAMILY)
|
||||
#ifndef _MSC_VER
|
||||
// Intrinsic for "cpuid".
|
||||
#if defined(__pic__) && defined(__i386__)
|
||||
#if (defined(__pic__) || defined(__PIC__)) && defined(__i386__)
|
||||
static inline void __cpuid(int cpu_info[4], int info_type) {
|
||||
__asm__ volatile (
|
||||
"mov %%ebx, %%edi\n"
|
||||
|
|
Loading…
Reference in New Issue