mirror of
https://github.com/archlinuxarm/PKGBUILDs.git
synced 2024-12-08 23:03:46 +00:00
22 lines
508 B
Diff
22 lines
508 B
Diff
|
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
|
||
|
@@ -481,10 +481,8 @@
|
||
|
out << "PyQt_Desktop_OpenGL\\n";
|
||
|
#endif
|
||
|
|
||
|
-// This is the test used in qglobal.h.
|
||
|
-#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";
|
||
|
|
||
|
return 0;
|
||
|
}
|
||
|
|