style) C code with Visual C++?

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 */
}

Is there a compiler switch to enable support for this in Visual C++ 2008?


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++

链接地址: http://www.djcxy.com/p/57280.html

上一篇: 如何将自定义形状变形/制作成圆形? CANVAS JS

下一篇: 样式)使用Visual C ++的C代码?