diff options
Diffstat (limited to 'JavaScriptCore')
-rw-r--r-- | JavaScriptCore/wtf/MathExtras.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/JavaScriptCore/wtf/MathExtras.h b/JavaScriptCore/wtf/MathExtras.h index 8666724..cd41f5f 100644 --- a/JavaScriptCore/wtf/MathExtras.h +++ b/JavaScriptCore/wtf/MathExtras.h @@ -26,7 +26,13 @@ #ifndef WTF_MathExtras_h #define WTF_MathExtras_h +#if PLATFORM(ANDROID) +// cmath does not provide signbit in sim-eng builds. +// TODO: Find a better solution to this problem before upstreaming. +#include <math.h> +#else #include <cmath> +#endif #include <float.h> #include <stdlib.h> |