Made consistent the macro checks between iOS and OS X