What's the C/Objective-C equivalent of targetEnvironment(UIKitForMac)?

This documentation says to use to use the following code to exclude code from being compiled for UIKit for Mac:

#if !targetEnvironment(UIKitForMac)

But that doesn't compile in C or Objective-C code, which makes me think this is a Swift-ism. What's the C/Objective-C equivalent?

Accepted Reply

Shortly after I asked, I think I found my own answer:

#if !TARGET_OS_UIKITFORMAC

Replies

Shortly after I asked, I think I found my own answer:

#if !TARGET_OS_UIKITFORMAC

This has been renamed

TARGET_OS_MACCATALYST

if anyone else is wondering