Skip to content

Commit

Permalink
Make swift bridging include portable on apple.
Browse files Browse the repository at this point in the history
* this include may not exist, for example, if building
  without the xcode toolchain, aka the "vanilla swift"
  toolchain.
  • Loading branch information
furby-tm committed Mar 15, 2024
1 parent e9817fd commit e8bc9ed
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion Sources/Arch/include/Arch/swiftInterop.h
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,9 @@
*/

#ifdef __APPLE__
# include <swift/bridging>
# if __has_include(<swift/bridging>)
# include <swift/bridging>
# endif /* __has_include(<swift/bridging>) */
#endif /* __APPLE__ */

/** ----------
Expand Down

0 comments on commit e8bc9ed

Please sign in to comment.