From f12e8fb1ea42e569a07d9919d19505fbc59e86ad Mon Sep 17 00:00:00 2001 From: Peter Date: Tue, 25 Feb 2014 20:52:17 +0400 Subject: [PATCH] MTKeychain: compile-time error for unsupported OS --- MTProtoKit/MTKeychain.m | 2 ++ 1 file changed, 2 insertions(+) diff --git a/MTProtoKit/MTKeychain.m b/MTProtoKit/MTKeychain.m index b607ebff5d..65c56b02e2 100644 --- a/MTProtoKit/MTKeychain.m +++ b/MTProtoKit/MTKeychain.m @@ -190,6 +190,8 @@ static NSMutableDictionary *keychains() NSString *applicationSupportPath = NSSearchPathForDirectoriesInDomains(NSApplicationSupportDirectory, NSUserDomainMask, YES)[0]; NSString *applicationName = [[[NSBundle mainBundle] infoDictionary] objectForKey:@"CFBundleName"]; dataDirectory = [[applicationSupportPath stringByAppendingPathComponent:applicationName] stringByAppendingPathComponent:@"mtkeychain"]; +#else +# error "Unsupported OS" #endif __autoreleasing NSError *error = nil;