Skip to content

Commit

Permalink
apple: Patched to compile on XCode versions < 7.
Browse files Browse the repository at this point in the history
  • Loading branch information
icculus committed Aug 8, 2017
1 parent c52be25 commit 961c060
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/physfs_platform_apple.m
Expand Up @@ -50,9 +50,9 @@ void __PHYSFS_platformDeinit(void)
{
@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);
Expand Down

0 comments on commit 961c060

Please sign in to comment.