File tree 8 files changed +9
-9
lines changed
8 files changed +9
-9
lines changed Original file line number Diff line number Diff line change 2
2
3
3
#if os(macOS) || os(iOS) || os(tvOS) || os(watchOS)
4
4
import Darwin
5
- #elseif os(Linux) || os(FreeBSD) || os(PS4) || os(Android) || os(Cygwin) || os(Haiku)
5
+ #elseif os(Linux) || os(FreeBSD) || os(PS4) || os(Android) || os(Cygwin) || os(Haiku) || os(WASI)
6
6
import Glibc
7
7
#elseif os(Windows)
8
8
import MSVCRT
Original file line number Diff line number Diff line change 2
2
3
3
#if os(macOS) || os(iOS) || os(tvOS) || os(watchOS)
4
4
import Darwin
5
- #elseif os(Linux) || os(FreeBSD) || os(PS4) || os(Android) || os(Cygwin) || os(Haiku)
5
+ #elseif os(Linux) || os(FreeBSD) || os(PS4) || os(Android) || os(Cygwin) || os(Haiku) || os(WASI)
6
6
import Glibc
7
7
#elseif os(Windows)
8
8
import MSVCRT
Original file line number Diff line number Diff line change 5
5
import StdlibUnittest
6
6
#if os(macOS) || os(iOS) || os(tvOS) || os(watchOS)
7
7
import Darwin
8
- #elseif os(Linux) || os(FreeBSD) || os(PS4) || os(Android) || os(Cygwin) || os(Haiku)
8
+ #elseif os(Linux) || os(FreeBSD) || os(PS4) || os(Android) || os(Cygwin) || os(Haiku) || os(WASI)
9
9
import Glibc
10
10
#else
11
11
#error("Unsupported platform")
Original file line number Diff line number Diff line change @@ -9,12 +9,12 @@ PrintTests.test("Printable") {
9
9
let lowUP = UnsafeMutablePointer < Float > ( bitPattern: 0x1 ) !
10
10
let fourByteUP = UnsafeMutablePointer < Float > ( bitPattern: 0xabcd1234 as UInt ) !
11
11
12
- #if !(arch(i386) || arch(arm))
12
+ #if !(arch(i386) || arch(arm) || arch(wasm32) )
13
13
let eightByteAddr : UInt = 0xabcddcba12344321
14
14
let eightByteUP = UnsafeMutablePointer < Float > ( bitPattern: eightByteAddr) !
15
15
#endif
16
16
17
- #if arch(i386) || arch(arm)
17
+ #if arch(i386) || arch(arm) || arch(wasm32)
18
18
let expectedLow = " 0x00000001 "
19
19
expectPrinted ( " 0xabcd1234 " , fourByteUP)
20
20
#else
Original file line number Diff line number Diff line change @@ -12,7 +12,7 @@ import SwiftShims
12
12
13
13
#if os(macOS) || os(iOS) || os(tvOS) || os(watchOS)
14
14
import Darwin
15
- #elseif os(Linux) || os(FreeBSD) || os(PS4) || os(Android) || os(Cygwin) || os(Haiku)
15
+ #elseif os(Linux) || os(FreeBSD) || os(PS4) || os(Android) || os(Cygwin) || os(Haiku) || os(WASI)
16
16
import Glibc
17
17
#elseif os(Windows)
18
18
import MSVCRT
Original file line number Diff line number Diff line change @@ -6,7 +6,7 @@ import Swift
6
6
#if _runtime(_ObjC)
7
7
import Darwin
8
8
import CoreGraphics
9
- #elseif os(Linux) || os(FreeBSD) || os(PS4) || os(Android) || os(Cygwin) || os(Haiku)
9
+ #elseif os(Linux) || os(FreeBSD) || os(PS4) || os(Android) || os(Cygwin) || os(Haiku) || os(WASI)
10
10
import Glibc
11
11
typealias CGFloat = Double
12
12
#elseif os(Windows)
Original file line number Diff line number Diff line change 19
19
20
20
#if os(macOS) || os(iOS) || os(tvOS) || os(watchOS)
21
21
import Darwin. C. tgmath
22
- #elseif os(Linux) || os(FreeBSD) || os(PS4) || os(Android) || os(Cygwin) || os(Haiku)
22
+ #elseif os(Linux) || os(FreeBSD) || os(PS4) || os(Android) || os(Cygwin) || os(Haiku) || os(WASI)
23
23
import Glibc
24
24
#elseif os(Windows)
25
25
import MSVCRT
Original file line number Diff line number Diff line change 6
6
7
7
#if os(macOS) || os(iOS) || os(tvOS) || os(watchOS)
8
8
import Darwin
9
- #elseif os(Linux) || os(FreeBSD) || os(PS4) || os(Android) || os(Cygwin) || os(Haiku)
9
+ #elseif os(Linux) || os(FreeBSD) || os(PS4) || os(Android) || os(Cygwin) || os(Haiku) || os(WASI)
10
10
import Glibc
11
11
#elseif os(Windows)
12
12
import MSVCRT
You can’t perform that action at this time.
0 commit comments