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

Unified Diff: src/platform-posix.cc

Issue 121303005: Use std:: on symbols declared in C++-style C headers. (Closed) Base URL: git://github.com/v8/v8.git@master
Patch Set: Including <cstdlib> in cctest/test-time.cc is no longer necessary. Created 6 years, 11 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: src/platform-posix.cc
diff --git a/src/platform-posix.cc b/src/platform-posix.cc
index 087625a6b5441300a881a0c7c2becd250b092ed6..626cf3d69200e460a5634c83679d967c59a264b5 100644
--- a/src/platform-posix.cc
+++ b/src/platform-posix.cc
@@ -296,7 +296,7 @@ void OS::DebugBreak() {
// Math functions
double modulo(double x, double y) {
- return fmod(x, y);
+ return std::fmod(x, y);
}
@@ -354,7 +354,7 @@ double OS::TimeCurrentMillis() {
double OS::DaylightSavingsOffset(double time) {
if (std::isnan(time)) return nan_value();
- time_t tv = static_cast<time_t>(floor(time/msPerSecond));
+ time_t tv = static_cast<time_t>(std::floor(time/msPerSecond));
struct tm* t = localtime(&tv);
if (NULL == t) return nan_value();
return t->tm_isdst > 0 ? 3600 * msPerSecond : 0;
« src/d8-readline.cc ('K') | « src/platform-openbsd.cc ('k') | src/platform-solaris.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698