File tree Expand file tree Collapse file tree 2 files changed +7
-2
lines changed
lib/ASTGen/Sources/LLVMJSON Expand file tree Collapse file tree 2 files changed +7
-2
lines changed Original file line number Diff line number Diff line change 35
35
36
36
// Clang has been defining __INTxx_TYPE__ macros for a long time.
37
37
// __UINTxx_TYPE__ are defined only since Clang 3.5.
38
- #if !defined(__APPLE__ ) && !defined(__linux__ ) && !defined(__OpenBSD__ ) && !defined(__wasi__ )
38
+ #if defined(_MSC_VER ) && !defined(__clang__ )
39
+ typedef __int64 __swiftc_int64_t ;
40
+ typedef unsigned __int64 __swiftc_uint64_t ;
41
+ typedef int __swiftc_int32_t ;
42
+ typedef unsigned int __swiftc_uint32_t ;
43
+ #elif !defined(__APPLE__ ) && !defined(__linux__ ) && !defined(__OpenBSD__ ) && !defined(__wasi__ )
39
44
#include <stdint.h>
40
45
typedef int64_t __swiftc_int64_t ;
41
46
typedef uint64_t __swiftc_uint64_t ;
Original file line number Diff line number Diff line change @@ -41,7 +41,7 @@ public struct LLVMJSON {
41
41
42
42
/// Decode a JSON data to a Swift value.
43
43
public static func decode< T: Decodable > ( _ type: T . Type , from json: UnsafeBufferPointer < Int8 > ) throws -> T {
44
- let data = BridgedData ( baseAddress: json. baseAddress, size: UInt ( json. count) )
44
+ let data = BridgedData ( baseAddress: json. baseAddress, size: SwiftUInt ( json. count) )
45
45
let valuePtr = JSON_deserializedValue ( data)
46
46
defer { JSON_value_delete ( valuePtr) }
47
47
You can’t perform that action at this time.
0 commit comments