Skip to content

Commit

Permalink
fix: undeclared identifier on macOS
Browse files Browse the repository at this point in the history
  • Loading branch information
Casqade committed Mar 27, 2024
1 parent 9e653c1 commit f8ee46d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Duration.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ Now()
LARGE_INTEGER currentTime;
QueryPerformanceCounter( &currentTime );

#elif defined(TIME_UTILS_LIN) || defined(TIME_UTILS_MAC)
#elif defined(TIME_UTILS_LIN)
timespec currentTime;
clock_gettime( CLOCK_MONOTONIC, &currentTime );

Expand Down Expand Up @@ -58,7 +58,7 @@ SleepUntil(
::Sleep(1);

#elif defined(TIME_UTILS_MAC)
timespec timeToSleep = duration;
timespec timeToSleep = timestamp;
return clock_nanosleep_abstime(&timeToSleep) == 0;

#else
Expand Down

0 comments on commit f8ee46d

Please sign in to comment.