[TIMOB-13037]Including the #ifdefs.
Merge pull request #3960 from srahim/timob-13037

[TIMOB-13037]iOS: fixing build crasher