summaryrefslogtreecommitdiffstats
path: root/JavaScriptCore
diff options
context:
space:
mode:
authorSteve Block <steveblock@google.com>2010-02-16 14:22:56 +0000
committerSteve Block <steveblock@google.com>2010-02-16 14:22:56 +0000
commit4b8216b9c9697e1ffb7c37e531dab6aa501fb639 (patch)
treefe9b64c7f57397265a394dca2a970a086db4b8f1 /JavaScriptCore
parent2e5a1e938add6ca3d39bb06da21fe73d7a33ac51 (diff)
downloadexternal_webkit-4b8216b9c9697e1ffb7c37e531dab6aa501fb639.zip
external_webkit-4b8216b9c9697e1ffb7c37e531dab6aa501fb639.tar.gz
external_webkit-4b8216b9c9697e1ffb7c37e531dab6aa501fb639.tar.bz2
Fix the sim-eng build
Change-Id: Icc67c8786c1a1b98993fb27caf71bd4895118589
Diffstat (limited to 'JavaScriptCore')
-rw-r--r--JavaScriptCore/wtf/MathExtras.h6
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>