fix error: 'for' loop initial declarations are only allowed in C99 mode
Merge pull request #1 from thomasbley/master

fix error: 'for' loop initial declarations are only allowed in C99 mode