issue #2188:fix compiling error of iOS
Merge pull request #2603 from minggo/master

fix compiling error of iOS