mirror of
https://github.com/PurpleI2P/i2pd.git
synced 2025-04-28 11:47:48 +02:00
don't use clock_cast with clang
This commit is contained in:
parent
d71f3d40fa
commit
937809bc0f
2 changed files with 2 additions and 2 deletions
|
@ -254,7 +254,7 @@ namespace fs {
|
|||
std::error_code ec;
|
||||
auto t = std::filesystem::last_write_time (path, ec);
|
||||
if (ec) return 0;
|
||||
#if __cplusplus >= 202002L // C++ 20 or higher
|
||||
#if !defined(__clang__) && __cplusplus >= 202002L // C++ 20 or higher
|
||||
const auto sctp = std::chrono::clock_cast<std::chrono::system_clock>(t);
|
||||
#else
|
||||
const auto sctp = std::chrono::time_point_cast<std::chrono::system_clock::duration>(
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue