mirror of
https://github.com/Hamlib/Hamlib.git
synced 2024-09-21 10:27:18 +00:00
Fix MacOS warning in precise_time.c
This commit is contained in:
parent
8fcb77664c
commit
d20a235860
@ -46,13 +46,14 @@ double monotonic_seconds()
|
||||
#define NANOS_PER_SECF 1000000000.0
|
||||
#define USECS_PER_SEC 1000000
|
||||
|
||||
static int showme = 0;
|
||||
|
||||
#if _POSIX_TIMERS > 0 && defined(_POSIX_MONOTONIC_CLOCK)
|
||||
// If we have it, use clock_gettime and CLOCK_MONOTONIC.
|
||||
|
||||
#include <time.h>
|
||||
|
||||
static int showme = 0;
|
||||
|
||||
double monotonic_seconds()
|
||||
{
|
||||
if (showme)
|
||||
|
Loading…
Reference in New Issue
Block a user