@@ -14,16 +14,18 @@ #define _GNU_SOURCE #include #include #include -#import #ifdef OF_APPLE_RUNTIME # import -# define SEL_NAME(x) sel_getName(x) -#else -# define SEL_NAME(x) sel_get_name(x) +# import +#endif + +#ifdef OF_GNU_RUNTIME +# import +# define sel_getName(x) sel_get_name(x) #endif #import "OFExceptions.h" #import "OFString.h" #import "OFTCPSocket.h" @@ -242,11 +244,11 @@ if (string != nil) return string; string = [[OFString alloc] initWithFormat: @"The method %s of class %s is not or not fully implemented!", - SEL_NAME(selector), [class_ className]]; + sel_getName(selector), [class_ className]]; return string; } @end @@ -292,11 +294,11 @@ if (string != nil) return string; string = [[OFString alloc] initWithFormat: @"The argument for method %s of class %s is invalid!", - SEL_NAME(selector), [class_ className]]; + sel_getName(selector), [class_ className]]; return string; } @end