diff src/os_mac.h @ 32066:1b2d6aa29267 v9.0.1364

patch 9.0.1364: build error with older Mac OS Commit: https://github.com/vim/vim/commit/da77693b17ff1f17f03ac78f0298294cf7d1087f Author: Yee Cheng Chin <ychin.git@gmail.com> Date: Tue Feb 28 15:51:23 2023 +0000 patch 9.0.1364: build error with older Mac OS Problem: Build error with older Mac OS. Solution: Adjust #ifdef. (Yee Cheng Chin, closes https://github.com/vim/vim/issues/12074)
author Bram Moolenaar <Bram@vim.org>
date Tue, 28 Feb 2023 17:00:04 +0100
parents c09c7ea83047
children 533e36e02a68
line wrap: on
line diff
--- a/src/os_mac.h
+++ b/src/os_mac.h
@@ -272,7 +272,8 @@
 
 # include <dispatch/dispatch.h>
 
-# ifndef MAC_OS_X_VERSION_10_12
+# if !defined(MAC_OS_X_VERSION_10_12) \
+	|| (MAC_OS_X_VERSION_MAX_ALLOWED < MAC_OS_X_VERSION_10_12)
 typedef int clockid_t;
 # endif
 # ifndef CLOCK_REALTIME