[1690] in Kerberos-V5-bugs

home help back first fref pref prev next nref lref last post

Re: #error lossage

daemon@ATHENA.MIT.EDU (Derek Atkins)
Mon Oct 23 17:14:42 1995

Date: Mon, 23 Oct 1995 17:14:29 -0400
From: Derek Atkins <warlord@MIT.EDU>
To: Tom Yu <tlyu@MIT.EDU>
Cc: krb5-bugs@MIT.EDU
In-Reply-To: "[1688] in Kerberos-V5-bugs"

> Ultrix cpp doesn't like #error, so anything including gssapi.h doesn't
> compile.  It doesn't even like the following construction:
> 
> #if 0
> #error foobar
> #endif
> 
> Any great ideas on how to fix this, other than replacing "#error" with
> "error"? :-)

For PGP, I did this:

#include "You're being a bonehead"

In general this will error-out properly.  Yea, it's not as good as
using #error, but this will at least give you the proper failure in
the appropriate cases.

-derek

home help back first fref pref prev next nref lref last post