mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-01-22 09:12:13 -05:00
AK: Add workaround for older Xcode versions in Swift.h
This commit is contained in:
parent
d953c6b451
commit
fc3ebd7efd
Notes:
github-actions[bot]
2024-11-26 10:01:38 +00:00
Author: https://github.com/ADKaster Commit: https://github.com/LadybirdBrowser/ladybird/commit/fc3ebd7efd6 Pull-request: https://github.com/LadybirdBrowser/ladybird/pull/2582
1 changed files with 11 additions and 0 deletions
11
AK/Swift.h
11
AK/Swift.h
|
@ -8,6 +8,17 @@
|
|||
|
||||
#if __has_include(<swift/bridging>)
|
||||
# include <swift/bridging>
|
||||
// FIXME: Workaround for Xcode 14/15. When swif becomes required, we should bump the
|
||||
// required Xcode verison to one that supports all the features we are using.
|
||||
# ifndef SWIFT_UNCHECKED_SENDABLE
|
||||
# define SWIFT_UNCHECKED_SENDABLE
|
||||
# define SWIFT_NONCOPYABLE
|
||||
# define SWIFT_NONESCAPABLE
|
||||
# define SWIFT_ESCAPABLE
|
||||
# define SWIFT_ESCAPABLE_IF(...)
|
||||
# define SWIFT_RETURNS_RETAINED
|
||||
# define SWIFT_RETURNS_UNRETAINED
|
||||
# endif
|
||||
#else
|
||||
# define SWIFT_SELF_CONTAINED
|
||||
# define SWIFT_RETURNS_INDEPENDENT_VALUE
|
||||
|
|
Loading…
Reference in a new issue