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 15
15
import Swift
16
16
17
17
#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
19
23
#elseif canImport(Musl)
20
24
import Musl
21
25
#elseif os(Linux) || os(FreeBSD) || os(OpenBSD) || os(PS4) || os(Cygwin) || os(Haiku)
Original file line number Diff line number Diff line change 1
1
// RUN: %target-run-simple-swiftgyb(-Xfrontend -enable-experimental-forward-mode-differentiation)
2
2
// REQUIRES: executable_test
3
3
4
- #if canImport(Darwin)
4
+ #if canImport(tgmath_h)
5
+ import tgmath_h
6
+ #elseif canImport(Darwin)
5
7
import Darwin.C.tgmath
6
8
#elseif canImport(Glibc)
7
9
import Glibc
Original file line number Diff line number Diff line change 19
19
20
20
// REQUIRES: rdar94452524
21
21
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
24
26
#elseif canImport(Glibc)
25
27
import Glibc
26
28
#elseif os(WASI)
You can’t perform that action at this time.
0 commit comments