Skip to content
Permalink
Browse files
apple: Patched to compile on XCode versions < 7.
  • Loading branch information
icculus committed Aug 8, 2017
1 parent c52be25 commit 961c0604dc1d2a31c527570a759fa6f47dca989f
Showing with 2 additions and 2 deletions.
  1. +2 −2 src/physfs_platform_apple.m
@@ -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);

0 comments on commit 961c060

Please sign in to comment.