From cbb1ef38b5bee7dddf4cfaad7ef69792ec003d8d Mon Sep 17 00:00:00 2001 From: "Christopher R. Hertel" Date: Thu, 21 May 1998 17:14:20 +0000 Subject: Along the lines that Andrew suggested, I added a header called ubi_null.h. This header tries four different locations for a definition of NULL. If NULL still hasn't been found, it defaults to ((void *)0). All of the includes can be, essentially, overridden by defining NULL on the command line, as in -DNULL=((void *)0). I have faith that this will avoid the problem of NULL being in different places on different systems. If there is a system out there that doesn't define NULL in any of the headers I've included, then let me know *where* it's defined and I'll add another header. Chris -)----- (This used to be commit 05fcc678729999f249b97460a579bdc218028a47) --- source3/ubiqx/ubi_dLinkList.c | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) (limited to 'source3/ubiqx/ubi_dLinkList.c') diff --git a/source3/ubiqx/ubi_dLinkList.c b/source3/ubiqx/ubi_dLinkList.c index 65c11d225d..405cfcb6af 100644 --- a/source3/ubiqx/ubi_dLinkList.c +++ b/source3/ubiqx/ubi_dLinkList.c @@ -24,7 +24,10 @@ * * -------------------------------------------------------------------------- ** * - * Log: ubi_dLinkList.c,v + * Log: ubi_dLinkList.c,v + * Revision 0.6 1998/05/20 04:38:05 crh + * The C file now includes ubi_null.h. See ubi_null.h for more info. + * * Revision 0.5 1998/03/10 02:55:00 crh * Simplified the code and added macros for stack & queue manipulations. * @@ -52,8 +55,8 @@ * ========================================================================== ** */ -#include "../includes.h" -#include "ubi_dLinkList.h" +#include "ubi_null.h" /* ubiqx NULL source. */ +#include "ubi_dLinkList.h" /* Header for *this* module. */ /* ========================================================================== ** * Functions... -- cgit