[comp.sources.bugs] Conforming to ANSI C

flee@gondor.psu.edu (Felix Lee) (11/11/87)

Followup-To:


In <722@unmvax.unm.edu>, mike@turing.unm.edu (Michael I. Bushnell) writes:
>The config.h file has:
> #define LIBDIR(xxx)	"/foo/bar/lib/xxx"
> #define FOO		LIBDIR(foofile)
>This is NON STANDARD.

A simple fix.
	#if __STDC__
	# define LIBDIR(xxx) "/foo/bar/lib/" #xxx
	#else
	# define LIBDIR(xxx) "/foo/bar/lib/xxx"
	#endif

Anyone written the "Portable C Programming Guide" yet?
--
Felix Lee	flee@gondor.psu.edu	{cbosgd,cmcl2}!psuvax1!gondor!flee