fix compiling error
fix compiling error on iOS
Merge pull request #7250 from minggo/fix-compiling

fix compiling error