I need to support iOS and OSX in my shared library, whats the best Macro / Practise for conditioning iOS and OSX code
the bellow code doesn't work for some reason :/
- (NSString *)hostName {
    #ifdef TARGET_OS_IPHONE
        return [[UIDevice currentDevice] name];
    #elif TARGET_OS_MAC
        return [[NSHost currentHost] localizedName];
    #endif
}
 
     
    