Index: src/OFSystemInfo.m ================================================================== --- src/OFSystemInfo.m +++ src/OFSystemInfo.m @@ -32,11 +32,11 @@ #import "OFDictionary.h" #import "OFApplication.h" #import "OFNotImplementedException.h" -#ifdef __APPLE__ +#if defined(__APPLE__) && !defined(OF_IOS) # include #endif #ifdef _WIN32 # include #endif @@ -135,11 +135,12 @@ return OF_STRING_ENCODING_UTF_8; } + (OFString*)userDataPath { -#if defined(__APPLE__) + /* TODO: Return something more sensible for iOS */ +#if defined(__APPLE__) && !defined(OF_IOS) void *pool = objc_autoreleasePoolPush(); char pathC[PATH_MAX]; NSSearchPathEnumerationState state; OFMutableString *path; OFString *home; @@ -214,11 +215,12 @@ #endif } + (OFString*)userConfigPath { -#if defined(__APPLE__) + /* TODO: Return something more sensible for iOS */ +#if defined(__APPLE__) && !defined(OF_IOS) void *pool = objc_autoreleasePoolPush(); char pathC[PATH_MAX]; NSSearchPathEnumerationState state; OFMutableString *path; OFString *home;