We have some old C code with pre-ANSI (K&R-style) function declarations. For example:
int foo(x, y) double x, y; { /* do some stuff */ }
In order to get this to compile put the code in a .c file vs. a .cpp. This instructs Visual Studio to compile the code as C instead of C++