From 757c95535526e770ca51a2fa3dbc35b39868a3b9 Mon Sep 17 00:00:00 2001 From: Sergey Fedorov 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 @@ -102,7 +102,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__) && __MAC_OS_X_VERSION_MIN_REQUIRED >= MAC_OS_X_VERSION_10_6 +#if defined(__APPLE__) && MAC_OS_X_VERSION_MIN_REQUIRED >= 1060 rc = pthread_setname_np(thread_name); #endif #else @@ -449,7 +449,7 @@ int Thread_wait_cond(cond_type condvar, int timeout_ms) struct timespec cond_timeout; FUNC_ENTRY; -#if defined(__APPLE__) && __MAC_OS_X_VERSION_MIN_REQUIRED < 101200 /* for older versions of MacOS */ +#if defined(__APPLE__) && MAC_OS_X_VERSION_MIN_REQUIRED < 101200 /* for older versions of MacOS */ struct timeval cur_time; gettimeofday(&cur_time, NULL); cond_timeout.tv_sec = cur_time.tv_sec;