File fix_qreal_check.diff of Package python-qt5
Description: check if qreal is double based on sizeof Author: Dmitry Shachnev <mitya57@gmail.com> Forwarded: no Last-Update: 2014-01-29 --- a/configure.py +++ b/configure.py @@ -676,9 +676,8 @@ #if QT_VERSION < 0x050200 // This is the test used in qglobal.h in Qt prior to v5.2. In v5.2 and later // qreal is always double. -#if defined(QT_NO_FPU) || defined(Q_PROCESSOR_ARM) || defined(Q_OS_WINCE) - out << "PyQt_qreal_double\\n"; -#endif + if (sizeof (qreal) != sizeof (double)) + out << "PyQt_qreal_double\\n"; #endif #if defined(QT_NO_PROCESS)