Fix cmath function usage
authorSimon Hausmann <simon.hausmann@digia.com>
Fri, 8 Feb 2013 08:23:58 +0000 (09:23 +0100)
committerLars Knoll <lars.knoll@digia.com>
Sat, 9 Feb 2013 09:49:00 +0000 (10:49 +0100)
commitafe7ad259acbbd4c1aa6dcd8c87469788099c90f
tree3eba40f256f53abe94756c364a0018565cab0d80
parenta0a58bf6e27f6ebc19fa1313a64d1acecd5b6345
Fix cmath function usage

Some of the cmath functions in std don't work reliably on all platforms
and on top of that with Visual Studio they are not in the std namespace
at all (but for example prefixed as _isnan). Import MathExtras.h from
WTF that includes all the necessary workarounds, including things like
making pow() with MinGW compliant with what JavaScript needs.

Change-Id: I3d8190ce33919db69b2889b439731a9cf5b2a46e
Reviewed-by: Lars Knoll <lars.knoll@digia.com>
src/3rdparty/masm/wtf/MathExtras.h [new file with mode: 0644]
src/v4/qmljs_runtime.cpp
src/v4/qmljs_runtime.h
src/v4/qmljs_value.cpp
src/v4/qv4dateobject.cpp
src/v4/qv4globalobject.cpp
src/v4/qv4jsonobject.cpp
src/v4/qv4mathobject.cpp
src/v4/qv4numberobject.cpp
src/v4/qv4stringobject.cpp