Make the code as ANSI C compliant.
Merge pull request #14 from tokuhirom/ansi-c

Make the code as ANSI C compliant.