From 4218c1b679d7b6b728c2af5bb3352c8c599a2cec Mon Sep 17 00:00:00 2001 From: Rauhul Varma Date: Sun, 14 Nov 2021 15:09:25 -0800 Subject: [PATCH] Reduce diff --- Sources/System/Internals/CInterop.swift | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/Sources/System/Internals/CInterop.swift b/Sources/System/Internals/CInterop.swift index c52c97ad..546547d4 100644 --- a/Sources/System/Internals/CInterop.swift +++ b/Sources/System/Internals/CInterop.swift @@ -38,33 +38,33 @@ public enum CInterop { /// The C `char` type public typealias Char = CChar -#if os(Windows) + #if os(Windows) /// The platform's preferred character type. On Unix, this is an 8-bit C /// `char` (which may be signed or unsigned, depending on platform). On /// Windows, this is `UInt16` (a "wide" character). public typealias PlatformChar = UInt16 -#else + #else /// The platform's preferred character type. On Unix, this is an 8-bit C /// `char` (which may be signed or unsigned, depending on platform). On /// Windows, this is `UInt16` (a "wide" character). public typealias PlatformChar = CInterop.Char -#endif + #endif -#if os(Windows) + #if os(Windows) /// The platform's preferred Unicode encoding. On Unix this is UTF-8 and on /// Windows it is UTF-16. Native strings may contain invalid Unicode, /// which will be handled by either error-correction or failing, depending /// on API. public typealias PlatformUnicodeEncoding = UTF16 -#else + #else /// The platform's preferred Unicode encoding. On Unix this is UTF-8 and on /// Windows it is UTF-16. Native strings may contain invalid Unicode, /// which will be handled by either error-correction or failing, depending /// on API. public typealias PlatformUnicodeEncoding = UTF8 -#endif + #endif -#if os(macOS) || os(iOS) || os(watchOS) || os(tvOS) + #if os(macOS) || os(iOS) || os(watchOS) || os(tvOS) /// The C `stat` type. public typealias Stat = stat @@ -100,5 +100,5 @@ public enum CInterop { /// The C `UInt32` type. public typealias FileFlags = UInt32 -#endif + #endif }