kopia lustrzana https://github.com/Hamlib/Hamlib
Fix MacOS warning in precise_time.c
rodzic
8fcb77664c
commit
d20a235860
|
@ -46,13 +46,14 @@ double monotonic_seconds()
|
||||||
#define NANOS_PER_SECF 1000000000.0
|
#define NANOS_PER_SECF 1000000000.0
|
||||||
#define USECS_PER_SEC 1000000
|
#define USECS_PER_SEC 1000000
|
||||||
|
|
||||||
static int showme = 0;
|
|
||||||
|
|
||||||
#if _POSIX_TIMERS > 0 && defined(_POSIX_MONOTONIC_CLOCK)
|
#if _POSIX_TIMERS > 0 && defined(_POSIX_MONOTONIC_CLOCK)
|
||||||
// If we have it, use clock_gettime and CLOCK_MONOTONIC.
|
// If we have it, use clock_gettime and CLOCK_MONOTONIC.
|
||||||
|
|
||||||
#include <time.h>
|
#include <time.h>
|
||||||
|
|
||||||
|
static int showme = 0;
|
||||||
|
|
||||||
double monotonic_seconds()
|
double monotonic_seconds()
|
||||||
{
|
{
|
||||||
if (showme)
|
if (showme)
|
||||||
|
|
Ładowanie…
Reference in New Issue