Description of changes:
Python until version 3.9 sets CMAKE_OSX_DEPLOYMENT_TARGET to 10.9, so we must continue to support it for now. This pull request fixes some warnings that arise when -DCMAKE_OSX_DEPLOYMENT_TARGET=10.9 is added.
Move the darwin specific header to the source directory because Swift compiles everything in the include directory by default. Currently, there is no good way to exclude headers.
By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.
Issue #, if available:
Description of changes: Python until version 3.9 sets
CMAKE_OSX_DEPLOYMENT_TARGET
to10.9
, so we must continue to support it for now. This pull request fixes some warnings that arise when-DCMAKE_OSX_DEPLOYMENT_TARGET=10.9
is added.The
API_AVAILABLE
macro doesn't work because it is equivalent to using the@available
attribute on a declaration.@available
is equivalent to__builtin_available
in C which is just a runtime check and can not be used this way. source: https://developer.apple.com/documentation/swift/marking-api-availability-in-objective-c , https://epir.at/2019/10/30/api-availability-and-target-conditionals/, https://developer.apple.com/forums/thread/719208Move the
darwin
specific header to the source directory becauseSwift
compiles everything in the include directory by default. Currently, there is no good way to exclude headers.By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.