From 7394c07d6b79cf80dbab07bec038d9837aef741b Mon Sep 17 00:00:00 2001 From: "Ryan C. Gordon" Date: Sat, 24 Mar 2018 00:19:59 -0400 Subject: [PATCH] apple: Patched to compile with older (mac 10.7) SDKs (thanks, Ken and Ryan!). --- src/physfs_platform_apple.m | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/physfs_platform_apple.m b/src/physfs_platform_apple.m index fe50f4b0..e6207f5b 100644 --- a/src/physfs_platform_apple.m +++ b/src/physfs_platform_apple.m @@ -50,7 +50,7 @@ void __PHYSFS_platformDeinit(void) { NSArray *paths = NSSearchPathForDirectoriesInDomains(NSApplicationSupportDirectory, NSUserDomainMask, TRUE); BAIL_IF(!paths, PHYSFS_ERR_OS_ERROR, NULL); - NSString *path = (NSString *) paths[0]; + NSString *path = (NSString *) [paths objectAtIndex:0]; BAIL_IF(!path, PHYSFS_ERR_OS_ERROR, NULL); size_t len = [path lengthOfBytesUsingEncoding:NSUTF8StringEncoding]; const size_t applen = strlen(app);