mirror of
https://github.com/PurpleI2P/i2pd
synced 2024-11-13 01:20:22 +03:00
Build with clang on linux fixed
This commit is contained in:
parent
3f3103572a
commit
25b8a18224
@ -526,7 +526,7 @@ namespace client
|
|||||||
{
|
{
|
||||||
if (!m_Pool || !IsReady ())
|
if (!m_Pool || !IsReady ())
|
||||||
{
|
{
|
||||||
if (requestComplete) requestComplete (false);
|
if (requestComplete) requestComplete (nullptr);
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
m_Service.post (std::bind (&ClientDestination::RequestLeaseSet, this, dest, requestComplete));
|
m_Service.post (std::bind (&ClientDestination::RequestLeaseSet, this, dest, requestComplete));
|
||||||
@ -630,7 +630,7 @@ namespace client
|
|||||||
|
|
||||||
if (done)
|
if (done)
|
||||||
{
|
{
|
||||||
if (it->second->requestComplete) it->second->requestComplete (false);
|
if (it->second->requestComplete) it->second->requestComplete (nullptr);
|
||||||
delete it->second;
|
delete it->second;
|
||||||
m_LeaseSetRequests.erase (it);
|
m_LeaseSetRequests.erase (it);
|
||||||
}
|
}
|
||||||
|
6
Log.cpp
6
Log.cpp
@ -24,12 +24,8 @@ void LogMsg::Process()
|
|||||||
|
|
||||||
const std::string& Log::GetTimestamp ()
|
const std::string& Log::GetTimestamp ()
|
||||||
{
|
{
|
||||||
#if !defined(__APPLE__)
|
#if (__GNUC__ == 4) && (__GNUC_MINOR__ <= 6) && !defined(__clang__)
|
||||||
#if (__GNUC__ == 4) && (__GNUC_MINOR__ <= 6) && !defined(__APPLE__)
|
|
||||||
auto ts = std::chrono::monotonic_clock::now ();
|
auto ts = std::chrono::monotonic_clock::now ();
|
||||||
#else
|
|
||||||
auto ts = std::chrono::steady_clock::now ();
|
|
||||||
#endif
|
|
||||||
#else
|
#else
|
||||||
auto ts = std::chrono::steady_clock::now ();
|
auto ts = std::chrono::steady_clock::now ();
|
||||||
#endif
|
#endif
|
||||||
|
6
Log.h
6
Log.h
@ -50,15 +50,11 @@ class Log: public i2p::util::MsgQueue<LogMsg>
|
|||||||
|
|
||||||
std::ostream * m_LogStream;
|
std::ostream * m_LogStream;
|
||||||
std::string m_Timestamp;
|
std::string m_Timestamp;
|
||||||
#if !defined(__APPLE__)
|
#if (__GNUC__ == 4) && (__GNUC_MINOR__ <= 6) && !defined(__clang__)
|
||||||
#if (__GNUC__ == 4) && (__GNUC_MINOR__ <= 6) // gcc 4.6
|
|
||||||
std::chrono::monotonic_clock::time_point m_LastTimestampUpdate;
|
std::chrono::monotonic_clock::time_point m_LastTimestampUpdate;
|
||||||
#else
|
#else
|
||||||
std::chrono::steady_clock::time_point m_LastTimestampUpdate;
|
std::chrono::steady_clock::time_point m_LastTimestampUpdate;
|
||||||
#endif
|
#endif
|
||||||
#else
|
|
||||||
std::chrono::steady_clock::time_point m_LastTimestampUpdate;
|
|
||||||
#endif
|
|
||||||
};
|
};
|
||||||
|
|
||||||
extern Log * g_Log;
|
extern Log * g_Log;
|
||||||
|
Loading…
Reference in New Issue
Block a user