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

Unified Diff: runtime/platform/floating_point_win.cc

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/floating_point_win.cc
===================================================================
--- runtime/platform/floating_point_win.cc (revision 37827)
+++ runtime/platform/floating_point_win.cc (working copy)
@@ -5,7 +5,6 @@
#include "platform/globals.h"
#if defined(TARGET_OS_WINDOWS)
-#include <math.h> // NOLINT
#include <limits> // NOLINT
// Taken from third_party/v8/src/platform-win32.cc
@@ -15,7 +14,7 @@
// If dividend is finite and divisor is an infinity or
// dividend is a zero and divisor is nonzero finite,
// then dividend is returned.
- if (!(_finite(x) && (!_finite(y) && !isnan(y))) &&
+ if (!(_finite(x) && (!_finite(y) && !std::isnan(y))) &&
!(x == 0 && (y != 0 && _finite(y)))) {
x = fmod(x, y);
}

Powered by Google App Engine
This is Rietveld 408576698