There is std::isnan and friends, but math.h also defines isnan as macro,
so std::isnan expands to std::whateverthemacrois and that fails to build.
So include math.h early on, get rid of the macros and then we can continue
to use std::isnan throughout the code base safely.
Change-Id: Ifee580fa2adff396eb6d6f064d4c095a896fb022
Reviewed-by: Erik Verbruggen <erik.verbruggen@digia.com>
Reviewed-by: Fabian Bumberger <fbumberger@rim.com>
inline double trunc(double d) { return d > 0 ? floor(d) : ceil(d); }
#endif
+#if defined(Q_OS_QNX)
+#include <math.h>
+#undef isnan
+#undef isfinite
+#undef isinf
+#undef signbit
+#endif
+
QT_BEGIN_NAMESPACE
namespace QV4 {