diff --git a/Model/GMArchiver.m b/Model/GMArchiver.m index 43768f203..8a331e476 100644 --- a/Model/GMArchiver.m +++ b/Model/GMArchiver.m @@ -37,6 +37,12 @@ #import #import +#ifndef AUTORELEASE +#define AUTORELEASE(object) [object autorelease] +#define RELEASE(object) [object release] +#define RETAIN(object) [object retain] +#endif + #include @interface GMClassInfo : NSObject diff --git a/Model/IMLoading.m b/Model/IMLoading.m index 3fbfe215d..0a792f99b 100644 --- a/Model/IMLoading.m +++ b/Model/IMLoading.m @@ -56,6 +56,7 @@ BOOL _fileOwnerDecoded = NO; + (BOOL)loadIMFile:(NSString*)path owner:(id)owner bundle:(NSBundle*)mainBundle { +#ifdef GNU_GUI_LIBRARY NSString* resourcePath = [mainBundle resourcePath]; GMUnarchiver* unarchiver; id previousNibOwner = _nibOwner; @@ -126,6 +127,7 @@ BOOL _fileOwnerDecoded = NO; be invoked recursively. */ _nibOwner = previousNibOwner; +#endif return YES; }