make restrict vars g++ compatible
Merge pull request #8 from gj12/master

make restrict vars g++ compatible