diff options
author | Roopesh Chander <roop@roopc.net> | 2019-01-22 04:06:27 +0530 |
---|---|---|
committer | Roopesh Chander <roop@roopc.net> | 2019-01-22 04:06:37 +0530 |
commit | 273ee04450b776bb5456c75ef17caa2e9e5ed2e7 (patch) | |
tree | 722f2ed10ef9357a456561bd9552fe69d7316671 /WireGuard/Shared | |
parent | macOS: Tunnel edit: actually clean up error handling (diff) | |
download | wireguard-apple-273ee04450b776bb5456c75ef17caa2e9e5ed2e7.tar.xz wireguard-apple-273ee04450b776bb5456c75ef17caa2e9e5ed2e7.zip |
Better os() directives
Signed-off-by: Roopesh Chander <roop@roopc.net>
Diffstat (limited to 'WireGuard/Shared')
-rw-r--r-- | WireGuard/Shared/FileManager+Extension.swift | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/WireGuard/Shared/FileManager+Extension.swift b/WireGuard/Shared/FileManager+Extension.swift index d98cd0a..2155683 100644 --- a/WireGuard/Shared/FileManager+Extension.swift +++ b/WireGuard/Shared/FileManager+Extension.swift @@ -8,8 +8,10 @@ extension FileManager { private static var sharedFolderURL: URL? { #if os(iOS) let appGroupIdInfoDictionaryKey = "com.wireguard.ios.app_group_id" - #elseif os(OSX) + #elseif os(macOS) let appGroupIdInfoDictionaryKey = "com.wireguard.macos.app_group_id" + #else + #error("Unimplemented") #endif guard let appGroupId = Bundle.main.object(forInfoDictionaryKey: appGroupIdInfoDictionaryKey) as? String else { os_log("Cannot obtain app group ID from bundle", log: OSLog.default, type: .error) |