mirror of
https://github.com/badaix/snapcast.git
synced 2025-05-30 17:36:16 +02:00
Fix warnings on Windows
This commit is contained in:
parent
30753f9f61
commit
ade0ee7be3
13 changed files with 67 additions and 63 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 = microsecs.count() / 1000000;
|
||||
tv->tv_usec = microsecs.count() % 1000000;
|
||||
tv->tv_sec = static_cast<time_t>(microsecs.count() / 1000000);
|
||||
tv->tv_usec = static_cast<suseconds_t>(microsecs.count() % 1000000);
|
||||
}
|
||||
|
||||
#ifdef WINDOWS
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue