[gnu.gcc.bug] Gnu C compiler's stddef.h and stdio.h don't mix

ado@NCIFCRF.GOV (Arthur David Olson) (09/28/88)

(We're running SunOS 4.0 on a Sun 3/110.)

Description:
	If you include Gnu's "stddef.h" file and Sun's "stdio.h" file,
	you get a warning.

Repeat-By:
	Script started on Tue Sep 27 17:04:28 1988
	daisy$ cat try.c
	#include <stdio.h>
	#include <stddef.h>
	daisy$ /usr/local/gcc -S -v try.c
	gcc version 1.28
	 /usr/local/lib/gcc-cpp -v -undef -D__GNU__ -D__GNUC__ -Dmc68000 -Dsun -Dunix -Dmc68020 -D__HAVE_FPU__-Dmc68020 try.c /tmp/cca07602.cpp
	GNU CPP version 1.28
>>>>	/usr/local/lib/gcc-include/stddef.h:14: warning: NULL redefined
	 /usr/local/lib/gcc-cc1 /tmp/cca07602.cpp -quiet -dumpbase try.c -version -o try.s
	GNU C version 1.28 (68k, MIT syntax) compiled by GNU C version 1.28.
	daisy$ exit

	script done on Tue Sep 27 17:04:49 1988

Fix:
	Add a "/usr/local/lib/gcc-include/stdio.h" with contents along these
	lines:
		#include "/usr/include/stdio.h"
		#undef NULL
		#define NULL ((void *)0)
-- 
	ado@ncifcrf.gov			ADO is a trademark of Ampex.