From a31dd925fd4f2e30bfbf20e48eda6d708f28bfa9 Mon Sep 17 00:00:00 2001 From: Evans Date: Sat, 19 Apr 2025 09:43:21 -0700 Subject: [PATCH] Fix: fixed mac os version min required --- darwin.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/darwin.go b/darwin.go index 86319ec..18abacf 100644 --- a/darwin.go +++ b/darwin.go @@ -3,7 +3,7 @@ package screenshot /* -#if __ENVIRONMENT_MAC_OS_X_VERSION_MIN_REQUIRED__ > MAC_OS_VERSION_14_4 +#if __ENVIRONMENT_MAC_OS_X_VERSION_MIN_REQUIRED__ > 140400 #cgo CFLAGS: -x objective-c #cgo LDFLAGS: -framework CoreGraphics -framework CoreFoundation -framework ScreenCaptureKit #include @@ -13,7 +13,7 @@ package screenshot #include static CGImageRef capture(CGDirectDisplayID id, CGRect diIntersectDisplayLocal, CGColorSpaceRef colorSpace) { -#if __ENVIRONMENT_MAC_OS_X_VERSION_MIN_REQUIRED__ > MAC_OS_VERSION_14_4 +#if __ENVIRONMENT_MAC_OS_X_VERSION_MIN_REQUIRED__ > 140400 dispatch_semaphore_t semaphore = dispatch_semaphore_create(0); __block CGImageRef result = nil; [SCShareableContent getShareableContentWithCompletionHandler:^(SCShareableContent* content, NSError* error) {