Msvc treats a .c file as a C source (why not) and forbids declarations in any place. Why it works elsewhere escapes me.
This patch moves some declarations upwards so that the code compiles.
MSVC failed to compile a working executable of makeobj until 6.0. Later version were never tested. I will look into it.
Well, I tested it with the project files uploaded (newly) to the stickied thread. It compiles, links, and works. Didn't test the pak-files, though...
Only 1 declaration of variable is in the middle of block and must be moved to beginning. That is the patch.
Thank you for fixing this one!