summaryrefslogtreecommitdiff
path: root/src/os_mac.h
diff options
context:
space:
mode:
authorichizok <gclient.gaap@gmail.com>2022-06-09 14:50:10 +0100
committerBram Moolenaar <Bram@vim.org>2022-06-09 14:50:10 +0100
commitf5465ff5c83f5a8a3e05bec64a0c013e5bdeb46e (patch)
tree65d83f9354bf2f7110f8d35b44d493e8c8a3aa76 /src/os_mac.h
parentb5f0801b1f043b5cf99380f58eca51b75b3236c7 (diff)
downloadvim-git-f5465ff5c83f5a8a3e05bec64a0c013e5bdeb46e.tar.gz
patch 8.2.5071: with some Mac OS version clockid_t is redefinedv8.2.5071
Problem: With some Mac OS version clockid_t is redefined. Solution: Adjust #ifdefs. (Ozaki Kiichi, closes #10549)
Diffstat (limited to 'src/os_mac.h')
-rw-r--r--src/os_mac.h7
1 files changed, 3 insertions, 4 deletions
diff --git a/src/os_mac.h b/src/os_mac.h
index 646dff414..a7b1dba06 100644
--- a/src/os_mac.h
+++ b/src/os_mac.h
@@ -272,15 +272,14 @@
# include <dispatch/dispatch.h>
-# if !defined(MAC_OS_X_VERSION_10_12) || \
- (MAC_OS_X_VERSION_MIN_REQUIRED < MAC_OS_X_VERSION_10_12)
+# ifndef MAC_OS_X_VERSION_10_12
typedef int clockid_t;
# endif
# ifndef CLOCK_REALTIME
-# define CLOCK_REALTIME 0
+# define CLOCK_REALTIME 0
# endif
# ifndef CLOCK_MONOTONIC
-# define CLOCK_MONOTONIC 1
+# define CLOCK_MONOTONIC 1
# endif
struct itimerspec