Re: ISO C incompatibilities

From: Tommy Reynolds (TommyReynolds_at_yahoo.com)
Date: 05/27/04


Date: Thu, 27 May 2004 16:28:42 -0500

On Thu, 27 May 2004 21:02:36 +0000, djk9636 wrote:

> I have some old C code that quit compiling on Linux because the compiler
> doesn't like the function prototypes not matching the function
> definitions. I know Sun has a compiler switch that overrides this, but
> I can't seem to find how to do it on Linux.

Google.com is your friend. Try searching for the "mkptypes" program:
it will transform your K&R code into ANSI-style code. Add an
additional step to your Makefile's to do the transformation.

HTH.