Fix wrong qreal architecture checks v5.3.1
authorDmitry Shachnev <mitya57@gmail.com>
Sun, 8 Jun 2014 15:17:00 +0000 (19:17 +0400)
committerThe Qt Project <gerrit-noreply@qt-project.org>
Thu, 12 Jun 2014 17:46:43 +0000 (19:46 +0200)
commit036c51c6841a207921a8d2dff3971e74f71201e9
treedd6d2ab32a5ce549dd40d2a5fd0626323445953d
parentf90f40de7006c4204df6aa414776616dc6f47f57
Fix wrong qreal architecture checks

Since Qt 5.2, qreal is double on all architectures by default,
but some vendors (like Jolla) still use qreal = float.

Instead of old (and broken) architecture checks, use runtime
check sizeof(qreal) == sizeof(double).

Remove the compile-time checks between DBL_MIN/DBL_MAX checks,
these are sufficient on their own.

Change-Id: Iae0c6486afaed0f0653fb3338c048c8f22d1e587
Reviewed-by: Alex Blasche <alexander.blasche@digia.com>
Reviewed-by: Lisandro Damián Nicanor Pérez Meyer <perezmeyer@gmail.com>
tests/auto/qgeocoordinate/tst_qgeocoordinate.cpp
tests/auto/qgeopositioninfo/tst_qgeopositioninfo.cpp
tests/auto/qgeosatelliteinfo/tst_qgeosatelliteinfo.cpp