From e24061216228b5ead1ea90e3e9d0d4df8df8b8f4 Mon Sep 17 00:00:00 2001 From: Johnny Willemsen Date: Sun, 11 Sep 2016 11:02:43 +0200 Subject: [PATCH] Use std::abs instead of abs * ACE/ace/Time_Value.cpp: --- ACE/ace/Time_Value.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/ACE/ace/Time_Value.cpp b/ACE/ace/Time_Value.cpp index b390d815bc4ef..0cad794c554cd 100644 --- a/ACE/ace/Time_Value.cpp +++ b/ACE/ace/Time_Value.cpp @@ -18,6 +18,8 @@ # include #endif /* ACE_HAS_CPP98_IOSTREAMS */ +#include + #ifdef ACE_HAS_CPP11 # include #endif /* ACE_HAS_CPP11 */ @@ -178,7 +180,7 @@ ACE_Time_Value::normalize (bool saturate) if (this->tv_.tv_usec >= ACE_ONE_SECOND_IN_USECS || this->tv_.tv_usec <= -ACE_ONE_SECOND_IN_USECS) { - time_t sec = abs(this->tv_.tv_usec) / ACE_ONE_SECOND_IN_USECS * (this->tv_.tv_usec > 0 ? 1 : -1); + time_t sec = std::abs(this->tv_.tv_usec) / ACE_ONE_SECOND_IN_USECS * (this->tv_.tv_usec > 0 ? 1 : -1); suseconds_t usec = this->tv_.tv_usec - sec * ACE_ONE_SECOND_IN_USECS; if (saturate && this->tv_.tv_sec > 0 && sec > 0 &&