Commit a1ca3d23 authored by Pavel Vainerman's avatar Pavel Vainerman

Небольшая правка работы с POCO_OLD_VERSION

parent b3029c67
...@@ -115,7 +115,7 @@ const Poco::Timespan UniSetTimer::millisecToPoco( const timeout_t msec ) ...@@ -115,7 +115,7 @@ const Poco::Timespan UniSetTimer::millisecToPoco( const timeout_t msec )
{ {
#ifdef POCO_OLD_VERSION #ifdef POCO_OLD_VERSION
if( msec == WaitUpTime ) if( msec == WaitUpTime )
return Poco::Timespan(std::numeric_limits<long>::max(),0); return Poco::Timespan(std::numeric_limits<Poco::Timestamp::TimeVal>::max(),0);
#else #else
if( msec == WaitUpTime ) if( msec == WaitUpTime )
return Poco::Timespan(Poco::Timestamp::TIMEVAL_MAX,0); return Poco::Timespan(Poco::Timestamp::TIMEVAL_MAX,0);
...@@ -129,7 +129,7 @@ const Poco::Timespan UniSetTimer::microsecToPoco( const timeout_t usec ) ...@@ -129,7 +129,7 @@ const Poco::Timespan UniSetTimer::microsecToPoco( const timeout_t usec )
{ {
#ifdef POCO_OLD_VERSION #ifdef POCO_OLD_VERSION
if( usec == WaitUpTime ) if( usec == WaitUpTime )
return Poco::Timespan(std::numeric_limits<long>::max(),0); return Poco::Timespan(std::numeric_limits<Poco::Timestamp::TimeVal>::max(),0);
#else #else
if( usec == WaitUpTime ) if( usec == WaitUpTime )
return Poco::Timespan(Poco::Timestamp::TIMEVAL_MAX,0); return Poco::Timespan(Poco::Timestamp::TIMEVAL_MAX,0);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment