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 /masm/config.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 'masm/config.h')
-rw-r--r-- | masm/config.h | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/masm/config.h b/masm/config.h index 2f4d9f4925..1ced4e454c 100644 --- a/masm/config.h +++ b/masm/config.h @@ -45,8 +45,10 @@ #include <wtf/Platform.h> #ifdef __cplusplus #include <wtf/Vector.h> +#include <cmath> +#else +#include <math.h> #endif #include <limits.h> -#include <math.h> #endif // MASM_CONFIG_H |