Fix build with GCC <= 4.2 (FreeBSD 9.x)

15b42af111 changed the qt_cpu_features
variable to be an array and never fixed this #if branch of the code.

Change-Id: Id69569111e7d4e619e22ffff144cf930f86f478e
Reviewed-by: Oswald Buddenhagen <oswald.buddenhagen@theqtcompany.com>
Reviewed-by: Olivier Goffart (Woboq GmbH) <ogoffart@woboq.com>
This commit is contained in:
Thiago Macieira 2016-05-09 11:19:27 -07:00
parent 29ac941c1e
commit c9998b8af3

View File

@ -666,7 +666,11 @@ void qDetectCpuFeatures()
// contains all the features that the code required. Qt 4 ran for years // contains all the features that the code required. Qt 4 ran for years
// like that, so it shouldn't be a problem. // like that, so it shouldn't be a problem.
qt_cpu_features.store(minFeature | quint32(QSimdInitialized)); qt_cpu_features[0].store(minFeature | quint32(QSimdInitialized));
#ifndef Q_ATOMIC_INT64_IS_SUPPORTED
qt_cpu_features[1].store(minFeature >> 32);
#endif
return; return;
# endif # endif
#endif #endif