mirror of
https://github.com/badaix/snapcast.git
synced 2025-08-03 16:48:52 +02:00
Fix Windows warnings
This commit is contained in:
parent
ade0ee7be3
commit
e5047f1aff
12 changed files with 167 additions and 165 deletions
|
@ -53,8 +53,8 @@ inline static void timeofday(struct timeval* tv)
|
|||
{
|
||||
auto now = Clock::now();
|
||||
auto microsecs = std::chrono::duration_cast<std::chrono::microseconds>(now.time_since_epoch());
|
||||
tv->tv_sec = static_cast<time_t>(microsecs.count() / 1000000);
|
||||
tv->tv_usec = static_cast<suseconds_t>(microsecs.count() % 1000000);
|
||||
tv->tv_sec = static_cast<long>(microsecs.count() / 1000000);
|
||||
tv->tv_usec = static_cast<long>(microsecs.count() % 1000000);
|
||||
}
|
||||
|
||||
#ifdef WINDOWS
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue