Basic, SIL: Include <swift/bridging> when avaiable instead of defining our own macros

This commit is contained in:
Anthony Latsis
2025-06-10 15:02:30 +01:00
parent 00aa22f7b2
commit 08d71a46eb
4 changed files with 66 additions and 18 deletions

View File

@@ -90,13 +90,6 @@
#define SWIFT_IMPORT_UNSAFE
#endif
/// Same as `SWIFT_SELF_CONTAINED` in <swift/bridging>.
#if __has_attribute(swift_attr)
#define SWIFT_SELF_CONTAINED __attribute__((swift_attr("import_owned")))
#else
#define SWIFT_SELF_CONTAINED
#endif
#ifdef __GNUC__
#define SWIFT_ATTRIBUTE_NORETURN __attribute__((noreturn))
#elif defined(_MSC_VER)