apple: Patched to compile on XCode versions < 7.
authorRyan C. Gordon <icculus@icculus.org>
Tue, 08 Aug 2017 11:57:44 -0400
changeset 1551 178e177063dd
parent 1550 c849824939bd
child 1552 cb2f1ea59ee0
apple: Patched to compile on XCode versions < 7.
src/physfs_platform_apple.m
--- a/src/physfs_platform_apple.m	Tue Aug 08 03:37:09 2017 -0400
+++ b/src/physfs_platform_apple.m	Tue Aug 08 11:57:44 2017 -0400
@@ -50,9 +50,9 @@
 {
     @autoreleasepool
     {
-        NSArray<NSString *> *paths = NSSearchPathForDirectoriesInDomains(NSApplicationSupportDirectory, NSUserDomainMask, TRUE);
+        NSArray *paths = NSSearchPathForDirectoriesInDomains(NSApplicationSupportDirectory, NSUserDomainMask, TRUE);
         BAIL_IF(!paths, PHYSFS_ERR_OS_ERROR, NULL);
-        NSString *path = paths[0];
+        NSString *path = (NSString *) paths[0];
         BAIL_IF(!path, PHYSFS_ERR_OS_ERROR, NULL);
         size_t len = [path lengthOfBytesUsingEncoding:NSUTF8StringEncoding];
         const size_t applen = strlen(app);