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 1010//
1111//===----------------------------------------------------------------------===//
1212
13+ // Copied from swift-foundation
14+
1315//===----------------------------------------------------------------------===//
1416// Coding Path Node
1517//===----------------------------------------------------------------------===//
Original file line number Diff line number Diff line change 1010//
1111//===----------------------------------------------------------------------===//
1212
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)
1323import Darwin
24+ #elseif canImport(Glibc)
25+ import Glibc
26+ #elseif canImport(ucrt)
27+ import ucrt
28+ #endif
29+ #endif
30+
1431
1532func decodeFromJSON< T: Decodable > ( json: UnsafeBufferPointer < UInt8 > ) throws -> T {
1633 try withExtendedLifetime ( try JSONScanner . scan ( buffer: json) ) { map in
You can’t perform that action at this time.
0 commit comments