Skip to content

Commit

Permalink
add defines in package.Swift
Browse files Browse the repository at this point in the history
  • Loading branch information
sbSteveK committed Oct 4, 2024
1 parent 78e5ac9 commit b9a6ed2
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
4 changes: 4 additions & 0 deletions Package.swift
Original file line number Diff line number Diff line change
Expand Up @@ -134,6 +134,10 @@ cSettingsIO.append(.define("AWS_USE_EPOLL"))
awsCIoPlatformExcludes.append("source/windows")
awsCIoPlatformExcludes.append("source/linux")
awsCIoPlatformExcludes.append("source/s2n")
cSettingsIO.append(.define("__APPLE__"))
cSettingsIO.append(.define("AWS_USE_DISPATCH_QUEUE", .when(platforms: [.iOS, .tvOS])))
cSettingsIO.append(.define("AWS_USE_SECITEM", .when(platforms: [.iOS, .tvOS])))
cSettingsIO.append(.define("AWS_USE_KQUEUE", .when(platforms: [.macOS])))
#endif

//////////////////////////////////////////////////////////////////////
Expand Down

0 comments on commit b9a6ed2

Please sign in to comment.