Make a platform-specific flag explicitly platform-specific

This commit is contained in:
Guillaume Lessard committed 2024-05-10 15:28:43 -07:00
1 parent cf5e688e70
commit b0e2a510ed
1 file changed
+1 -1
+1 -1
View File
@@ -27,7 +27,7 @@ let package = Package(
dependencies: ["CSystem"],
path: "Sources/System",
cSettings: [
.define("_CRT_SECURE_NO_WARNINGS")
.define("_CRT_SECURE_NO_WARNINGS", .when(platforms: [.windows]))
],
swiftSettings: [
.define("SYSTEM_PACKAGE_DARWIN", .when(platforms: [.macOS, .iOS, .watchOS, .tvOS, .visionOS])),