Android: Fix compilation for x86
Bionic on x86 does not have an implementation of ffs(), for some reason. The declaration is available in strings.h, but causes a linker error. The toolchain has a builtin version though, which can be used instead. Change-Id: Iaf4c27542c1aabe88713842303251db44ae6ba86 Reviewed-by: Jani Heikkinen <jani.heikkinen@theqtcompany.com> Reviewed-by: Christian Stromme <christian.stromme@theqtcompany.com> Reviewed-by: Thiago Macieira <thiago.macieira@intel.com>bb10
parent
3f858a0772
commit
4e966497ce
|
|
@ -512,7 +512,9 @@ int ffs(int i)
|
|||
#endif
|
||||
}
|
||||
#endif
|
||||
#endif // Q_OS_WIN
|
||||
#elif defined(Q_OS_ANDROID)
|
||||
# define ffs __builtin_ffs
|
||||
#endif
|
||||
|
||||
QBasicAtomicInt qt_cpu_features = Q_BASIC_ATOMIC_INITIALIZER(0);
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue