add marco compatible with ios source