Skip to content

Commit

Permalink
fix: suppress -Wexpansion-to-defined warning
Browse files Browse the repository at this point in the history
  • Loading branch information
hishamhm committed Dec 18, 2024
1 parent e217dba commit a2c9e96
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/time.c
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,11 @@
#define MAC_OS_X_VERSION_10_12 101200
#endif

#define HAVE_CLOCK_GETTIME (MAC_OS_X_VERSION_MIN_REQUIRED >= MAC_OS_X_VERSION_10_12 || defined(CLOCK_MONOTONIC))
#if (MAC_OS_X_VERSION_MIN_REQUIRED >= MAC_OS_X_VERSION_10_12 || defined(CLOCK_MONOTONIC))
#define HAVE_CLOCK_GETTIME 1
#else
#define HAVE_CLOCK_GETTIME 0
#endif

#if !(HAVE_CLOCK_GETTIME)
#include "time_osx.h"
Expand Down

0 comments on commit a2c9e96

Please sign in to comment.