File tree Expand file tree Collapse file tree 2 files changed +19
-0
lines changed
Sources/SwiftCompilerPluginMessageHandling/JSON Expand file tree Collapse file tree 2 files changed +19
-0
lines changed Original file line number Diff line number Diff line change 10
10
//
11
11
//===----------------------------------------------------------------------===//
12
12
13
+ // Copied from swift-foundation
14
+
13
15
//===----------------------------------------------------------------------===//
14
16
// Coding Path Node
15
17
//===----------------------------------------------------------------------===//
Original file line number Diff line number Diff line change 10
10
//
11
11
//===----------------------------------------------------------------------===//
12
12
13
+ #if swift(>=6.0)
14
+ #if canImport(Darwin)
15
+ private import Darwin
16
+ #elseif canImport(Glibc)
17
+ private import Glibc
18
+ #elseif canImport(ucrt)
19
+ private import ucrt
20
+ #endif
21
+ #else
22
+ #if canImport(Darwin)
13
23
import Darwin
24
+ #elseif canImport(Glibc)
25
+ import Glibc
26
+ #elseif canImport(ucrt)
27
+ import ucrt
28
+ #endif
29
+ #endif
30
+
14
31
15
32
func decodeFromJSON< T: Decodable > ( json: UnsafeBufferPointer < UInt8 > ) throws -> T {
16
33
try withExtendedLifetime ( try JSONScanner . scan ( buffer: json) ) { map in
You can’t perform that action at this time.
0 commit comments