Index: src/OFURL.h ================================================================== --- src/OFURL.h +++ src/OFURL.h @@ -140,19 +140,21 @@ /*! * @brief The URL as a string. */ @property (readonly, nonatomic) OFString *string; +#ifdef OF_HAVE_FILES /*! * @brief The local file system representation for a file URL. * * @note This only exists for URLs with the file scheme and throws an exception * otherwise. * */ @property OF_NULLABLE_PROPERTY (readonly, nonatomic) OFString *fileSystemRepresentation; +#endif /*! * @brief Creates a new URL with the specified string. * * @param string A string describing a URL Index: src/OFURL.m ================================================================== --- src/OFURL.m +++ src/OFURL.m @@ -1016,10 +1016,11 @@ [ret makeImmutable]; return ret; } +#ifdef OF_HAVE_FILES - (OFString *)fileSystemRepresentation { void *pool = objc_autoreleasePoolPush(); OFString *path; @@ -1041,10 +1042,11 @@ objc_autoreleasePoolPop(pool); return [path autorelease]; } +#endif - (OFMutableURL *)of_URLByAppendingPathComponent: (OFString *)component { OFMutableURL *ret = [[self mutableCopy] autorelease]; void *pool;