add macro for iOS  compile