Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(731)

Unified Diff: runtime/platform/c99_support_win.h

Issue 353403004: Fixes Android build by using C++ math header instead of C one. (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 6 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « runtime/lib/double.cc ('k') | runtime/platform/floating_point_win.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: runtime/platform/c99_support_win.h
===================================================================
--- runtime/platform/c99_support_win.h (revision 37827)
+++ runtime/platform/c99_support_win.h (working copy)
@@ -13,6 +13,8 @@
#include <float.h>
#include <string.h>
+#include <cmath>
+
static const unsigned __int64 kQuietNaNMask =
static_cast<unsigned __int64>(0xfff) << 51;
@@ -26,6 +28,8 @@
#define NAN \
*reinterpret_cast<const double*>(&kQuietNaNMask)
+namespace std {
+
static inline int isinf(double x) {
return (_fpclass(x) & (_FPCLASS_PINF | _FPCLASS_NINF)) != 0;
}
@@ -42,6 +46,8 @@
}
}
+} // namespace std
+
static inline double trunc(double x) {
if (x < 0) {
return ceil(x);
« no previous file with comments | « runtime/lib/double.cc ('k') | runtime/platform/floating_point_win.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698