fixed compile errors on visual studio (variable declarations in C have to be in the top of the function)
2 files changed