apple: Patched to compile with older (mac 10.7) SDKs (thanks, Ken and Ryan!). stable-3.0
authorRyan C. Gordon <icculus@icculus.org>
Sat, 24 Mar 2018 00:19:59 -0400
branchstable-3.0
changeset 1640 baf15f9e8d9a
parent 1637 f83d05e87212
child 1641 db8f944df5c5
apple: Patched to compile with older (mac 10.7) SDKs (thanks, Ken and Ryan!).
(transplanted from 46561a3098955aa3534c10e2dcd9e969e140bb3d)
src/physfs_platform_apple.m
--- a/src/physfs_platform_apple.m	Fri Mar 09 14:50:37 2018 -0500
+++ b/src/physfs_platform_apple.m	Sat Mar 24 00:19:59 2018 -0400
@@ -50,7 +50,7 @@
     {
         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);