File tree Expand file tree Collapse file tree 3 files changed +12
-4
lines changed
stdlib/public/Differentiation Expand file tree Collapse file tree 3 files changed +12
-4
lines changed Original file line number Diff line number Diff line change 1515import Swift
1616
1717#if os(macOS) || os(iOS) || os(tvOS) || os(watchOS) || os(visionOS)
18- import Darwin. C. tgmath
18+ #if canImport(tgmath_h)
19+ import tgmath_h
20+ #else
21+ import Darwin. C. tgmath
22+ #endif
1923#elseif canImport(Musl)
2024 import Musl
2125#elseif os(Linux) || os(FreeBSD) || os(OpenBSD) || os(PS4) || os(Cygwin) || os(Haiku)
Original file line number Diff line number Diff line change 11// RUN: %target-run-simple-swiftgyb(-Xfrontend -enable-experimental-forward-mode-differentiation)
22// REQUIRES: executable_test
33
4- #if canImport(Darwin)
4+ #if canImport(tgmath_h)
5+ import tgmath_h
6+ #elseif canImport(Darwin)
57 import Darwin.C.tgmath
68#elseif canImport(Glibc)
79 import Glibc
Original file line number Diff line number Diff line change 1919
2020// REQUIRES: rdar94452524
2121
22- #if canImport(Darwin)
23- import Darwin. C. tgmath
22+ #if canImport(tgmath_h)
23+ import tgmath_h
24+ #elseif canImport(Darwin)
25+ import tgmath_h
2426#elseif canImport(Glibc)
2527 import Glibc
2628#elseif os(WASI)
You can’t perform that action at this time.
0 commit comments