From 559a23d9cfc638221b16fa7d2561fc06ff792fb0 Mon Sep 17 00:00:00 2001 From: dgp Date: Tue, 26 Sep 2006 14:08:36 +0000 Subject: * generic/tcl.h: As 2006-09-22 commit from Donal K. Fellows demonstrates, "#define NULL 0" is just wrong, and as a quotable chat figure observed, "If NULL isn't defined, we're not using a C compiler." Improper fallback definition of NULL removed. --- ChangeLog | 7 +++++++ generic/tcl.h | 6 +----- 2 files changed, 8 insertions(+), 5 deletions(-) diff --git a/ChangeLog b/ChangeLog index e8c8327..4bf089c 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,10 @@ +2006-09-26 Don Porter + + * generic/tcl.h: As 2006-09-22 commit from Donal K. Fellows + demonstrates, "#define NULL 0" is just wrong, and as a quotable chat + figure observed, "If NULL isn't defined, we're not using a C compiler." + Improper fallback definition of NULL removed. + 2006-09-25 Pat Thoyts * generic/tcl.h: More fixing which struct stat to refer to. diff --git a/generic/tcl.h b/generic/tcl.h index 657ab9d..cc79407 100644 --- a/generic/tcl.h +++ b/generic/tcl.h @@ -13,7 +13,7 @@ * See the file "license.terms" for information on usage and redistribution of * this file, and for a DISCLAIMER OF ALL WARRANTIES. * - * RCS: @(#) $Id: tcl.h,v 1.215 2006/09/26 00:05:02 patthoyts Exp $ + * RCS: @(#) $Id: tcl.h,v 1.216 2006/09/26 14:08:36 dgp Exp $ */ #ifndef _TCL @@ -321,10 +321,6 @@ typedef long LONG; * Miscellaneous declarations. */ -#ifndef NULL -# define NULL 0 -#endif - #ifndef _CLIENTDATA # ifndef NO_VOID typedef void *ClientData; -- cgit v0.12