add macro for ios platform
Merge pull request #2 from fishkingsin/master

add marco compatible with ios source