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

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
Index: runtime/platform/c99_support_win.h
===================================================================
--- runtime/platform/c99_support_win.h (revision 37827)
+++ runtime/platform/c99_support_win.h (working copy)
@@ -26,6 +26,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 +44,8 @@
}
}
+} // namespace std
+
static inline double trunc(double x) {
if (x < 0) {
return ceil(x);

Powered by Google App Engine
This is Rietveld 408576698