<html><head><meta name="color-scheme" content="light dark"></head><body><pre style="word-wrap: break-word; white-space: pre-wrap;">From 757c95535526e770ca51a2fa3dbc35b39868a3b9 Mon Sep 17 00:00:00 2001
From: Sergey Fedorov &lt;barracuda@macos-powerpc.org&gt;
Date: Tue, 17 Sep 2024 14:25:31 +0800
Subject: [PATCH 2/2] Thread.c: fix Availability macros

---
 src/Thread.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git src/Thread.c src/Thread.c
index e2964b2..83ef267 100644
--- src/Thread.c
+++ src/Thread.c
@@ -98,7 +98,7 @@ int Thread_set_name(const char* thread_name)
 #endif*/
 #elif defined(OSX)
 	/* pthread_setname_np __API_AVAILABLE(macos(10.6), ios(3.2)) */
-#if defined(__APPLE__) &amp;&amp; __MAC_OS_X_VERSION_MIN_REQUIRED &gt;= MAC_OS_X_VERSION_10_6
+#if defined(__APPLE__) &amp;&amp; MAC_OS_X_VERSION_MIN_REQUIRED &gt;= 1060
 	rc = pthread_setname_np(thread_name);
 #endif
 #else
@@ -449,7 +449,7 @@ int Thread_wait_cond(cond_type condvar, int timeout_ms)
 	interval.tv_sec = timeout_ms / 1000;
 	interval.tv_nsec = (timeout_ms % 1000) * 1000000L;
 
-#if defined(__APPLE__) &amp;&amp; __MAC_OS_X_VERSION_MIN_REQUIRED &lt; 101200 /* for older versions of MacOS */
+#if defined(__APPLE__) &amp;&amp; MAC_OS_X_VERSION_MIN_REQUIRED &lt; 101200 /* for older versions of MacOS */
 	struct timeval cur_time;
     gettimeofday(&amp;cur_time, NULL);
     cond_timeout.tv_sec = cur_time.tv_sec;
</pre></body></html>