#define __need_XXX patch suggestion

Nick Burrett nick at dsvr.net
Wed Feb 13 02:35:24 PST 2002

John Tytgat <John.Tytgat at aaug.net> writes:

> In order to reduce the number of warnings the Norcroft C compiler is
> spitting during the UnixLib compilation, I would submit a patch which
> changes all:
> #define __need_XXX
> into
> #ifndef __need_XXX
> #define __need_XXX
> #endif
> Any objections ?

Yeah, it's gonna make everything look a mess.  I think this is more
of a problem with Norcroft C's pedantry.

I'm all for getting warnings fixed, but when it drastically reduces
the readability of the header files, then I'm not so happy.  Anyway,
doesn't Norcroft still complain about non-ANSI #includes ?


More information about the gcc mailing list