Page 1 of 1

Re: [Nagios-devel] TRUE and FALSE

Posted: Mon Apr 18, 2005 11:32 pm
by Guest
I guess the following would do the job:

#if ((TRUE != 0) && (FALSE == 0))




Message: 4
From: "Ethan Galstad"
To: [email protected]
Date: Sun, 17 Apr 2005 23:31:28 -0500
Subject: Re: [Nagios-devel] TRUE and FALSE

That could be done. Is there a #if-like statement to only do this if
TRUE=1 and FALSE=0? I wouldn't want TRUE and FALSE being set to
something else, lest bad things happen...

On 5 Apr 2005 at 14:12, Ben wrote:

> I'm making a NEB module that will rely on glib, which defines TRUE and
> FALSE. Nagios also defines TRUE and FALSE in include/common.h.
>
> Predictably, the compiler is unhappy when I try to compile my NEB.
>
> Ethan, do you have a problem wrapping your TRUE/FALSE defines in an
> #ifndef TRUE test?











This post was automatically imported from historical nagios-devel mailing list archives
Original poster: [email protected]