From ab2610822eb34f5481a997da35994b52af58fd2b Mon Sep 17 00:00:00 2001 From: William Dillon Date: Mon, 29 Aug 2016 00:47:52 +0000 Subject: [PATCH] Fix va_list on arm, and 32-bit CGFloat.NativeType --- CoreFoundation/Base.subproj/SwiftRuntime/CoreFoundation.h | 2 ++ CoreFoundation/URL.subproj/CFURLSessionInterface.h | 2 ++ Foundation/NSXMLNode.swift | 2 +- 3 files changed, 5 insertions(+), 1 deletion(-) diff --git a/CoreFoundation/Base.subproj/SwiftRuntime/CoreFoundation.h b/CoreFoundation/Base.subproj/SwiftRuntime/CoreFoundation.h index 41eb6c16d7..ca5ef72fc2 100644 --- a/CoreFoundation/Base.subproj/SwiftRuntime/CoreFoundation.h +++ b/CoreFoundation/Base.subproj/SwiftRuntime/CoreFoundation.h @@ -34,7 +34,9 @@ #include #include #include +#if !defined(__arm__) #include +#endif #include #include #include diff --git a/CoreFoundation/URL.subproj/CFURLSessionInterface.h b/CoreFoundation/URL.subproj/CFURLSessionInterface.h index 6655ea8b51..14a9cdc57c 100644 --- a/CoreFoundation/URL.subproj/CFURLSessionInterface.h +++ b/CoreFoundation/URL.subproj/CFURLSessionInterface.h @@ -27,7 +27,9 @@ #if !defined(__COREFOUNDATION_URLSESSIONINTERFACE__) #define __COREFOUNDATION_URLSESSIONINTERFACE__ 1 +#if !defined(__arm__) #include +#endif CF_IMPLICIT_BRIDGING_ENABLED CF_EXTERN_C_BEGIN diff --git a/Foundation/NSXMLNode.swift b/Foundation/NSXMLNode.swift index aaf63c56a0..e5558ff3e0 100644 --- a/Foundation/NSXMLNode.swift +++ b/Foundation/NSXMLNode.swift @@ -83,7 +83,7 @@ open class XMLNode: NSObject, NSCopying { public static let nodePromoteSignificantWhitespace = Options(rawValue: 1 << 28) public static let nodePreserveEmptyElements = Options([.nodeExpandEmptyElement, .nodeCompactEmptyElement]) public static let nodePreserveQuotes = Options([.nodeUseSingleQuotes, .nodeUseDoubleQuotes]) - public static let nodePreserveAll = Options(rawValue: Options([.nodePreserveNamespaceOrder, .nodePreserveAttributeOrder, .nodePreserveEntities, .nodePreservePrefixes, .nodePreserveCDATA, .nodePreserveEmptyElements, .nodePreserveQuotes, .nodePreserveWhitespace, .nodePreserveDTD, .nodePreserveCharacterReferences]).rawValue | UInt(bitPattern: 0xFFF00000)) + public static let nodePreserveAll = Options([.nodePreserveNamespaceOrder, .nodePreserveAttributeOrder, .nodePreserveEntities, .nodePreservePrefixes, .nodePreserveCDATA, .nodePreserveEmptyElements, .nodePreserveQuotes, .nodePreserveWhitespace, .nodePreserveDTD, .nodePreserveCharacterReferences]) } open override func copy() -> Any {