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?