| 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;
|
|
|