diff options
author | Erik Verbruggen <erik.verbruggen@digia.com> | 2012-10-17 13:24:46 +0200 |
---|---|---|
committer | Simon Hausmann <simon.hausmann@digia.com> | 2012-10-17 13:29:00 +0200 |
commit | e6cb8faa9160a5da4db8c443e10e4c3e34671336 (patch) | |
tree | 2c8b8f7337f8aaa07dd450d08906247f0aaa1f6e /qmljs_math.h | |
parent | f5b98f63862d4f36774d6baea5d3789350844e04 (diff) |
Change usages of math.h into cmath. Fixes MacOS build.
At least on MacOS, but possibly elsewhere too, including cmath before or
after math.h will undefine e.g. the isinf macro (and others). The math.h
include headers will make sure that math.h cannot get included twice,
so this will end with a situation where isinf is undefined, but
std::isinf is there.
Change-Id: Ie59aeadf2adde511ea8db5eb2fafd3272a7e9d51
Reviewed-by: Simon Hausmann <simon.hausmann@digia.com>
Diffstat (limited to 'qmljs_math.h')
-rw-r--r-- | qmljs_math.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/qmljs_math.h b/qmljs_math.h index 8e4ff2c03b..89d6e28ee3 100644 --- a/qmljs_math.h +++ b/qmljs_math.h @@ -42,7 +42,7 @@ #define QMLJS_MATH_H #include <QtCore/qnumeric.h> -#include <math.h> +#include <cmath> #if 1 //CPU(X86_64) |