Commit 14710df8 authored by Allan Sandfeld Jensen's avatar Allan Sandfeld Jensen Committed by Jani Heikkinen
Browse files

Fix QNX build


Copy the MathExtra QNX workarounds from QtWebKit to QtScript.

Change-Id: I95fbeeb6669a69e74f4b8a64b148dc5eff8c8e16
Reviewed-by: default avatarJani Heikkinen <jani.heikkinen@digia.com>
Reviewed-by: default avatarSimon Hausmann <simon.hausmann@digia.com>
Showing with 12 additions and 0 deletions
......@@ -40,6 +40,18 @@
#include <machine/ieee.h>
#endif
#if OS(QNX)
// FIXME: Look into a way to have cmath import its functions into both the standard and global
// namespace. For now, we include math.h since the QNX cmath header only imports its functions
// into the standard namespace.
#include <math.h>
// These macros from math.h conflict with the real functions in the std namespace.
#undef signbit
#undef isnan
#undef isinf
#undef isfinite
#endif
#ifndef M_PI
const double piDouble = 3.14159265358979323846;
const float piFloat = 3.14159265358979323846f;
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment