Fix iOS build target

This commit is contained in:
relikd
2019-09-14 13:43:37 +02:00
parent 994cbd29c2
commit ea7cc9c36f
5 changed files with 26 additions and 8 deletions

View File

@@ -23,6 +23,7 @@
// SOFTWARE.
@import Foundation;
@import CoreGraphics;
typedef enum {
RSFeedTypeNone,

View File

@@ -48,5 +48,7 @@ extern NSString *OPMLXMLURLKey; //xmlUrl
- (id)attributeForKey:(NSString *)key;
- (NSString *)recursiveDescription;
#ifdef TARGET_MAC
- (NSXMLDocument *)exportXML;
#endif
@end

View File

@@ -135,6 +135,8 @@ NSString *OPMLXMLURLKey = @"xmlUrl";
return mStr;
}
#ifdef TARGET_MAC
/// Can be used to export directly to @c .opml file.
- (NSXMLDocument *)exportXML {
NSXMLElement *head = [NSXMLElement elementWithName:@"head"];
@@ -172,4 +174,6 @@ NSString *OPMLXMLURLKey = @"xmlUrl";
}
}
#endif
@end