Re: Minor patch to glib.h in 1.0.2...




> The glib.h header shipped with 1.0.2 undefines NULL (and a bunch of
> other constants), which generates a compiler warning on SGI compilers.
> 
> Quick patch with #undef replaced by #ifndef and #endif in glib.h is
> attached...

Hi Tim,

According to the Changelog enty:

Thu May 14 03:04:43 1998  Tim Janik  <timj@gtk.org>

        * glib.h: provide G_GNUC_FUNCTION and G_GNUC_PRETTY_FUNCTION to
	avoid conditionals. unconditionally define NULL, TRUE, FALSE, MAX,
	MIN, ABS and CLAMP, these macros might be screwed from other headers.

This shouldn't be necessary for NULL, since that is defined by ANSI C.

For the others, how where they being screwed up? It seems that
it might be politer to use the existing definitions if they would
work OK.

                                        Owen



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]