Re: gmacros.h patch
- From: Darin Adler <darin eazel com>
- To: Eric Lemings <eric b lemings lmco com>
- Cc: Gtk Developers <gtk-devel-list gnome org>
- Subject: Re: gmacros.h patch
- Date: Thu, 12 Apr 2001 13:24:34 -0700
on 4/12/01 12:14 PM, Eric Lemings at eric b lemings lmco com wrote:
> A software package that uses GLib and GNU C++ with the AC_C_CONST
> macro will cause compile errors because AC_C_CONST says that the
> const keyword is broken and undefines it.
> --- gmacros.h.orig Thu Apr 12 13:50:57 2001
> +++ gmacros.h Thu Apr 12 13:52:08 2001
> @@ -59,8 +59,10 @@
> __attribute__((format_arg (arg_idx)))
> #define G_GNUC_NORETURN \
> __attribute__((noreturn))
> +#ifdef const
> #define G_GNUC_CONST \
> __attribute__((const))
> +#endif
> #define G_GNUC_UNUSED \
> __attribute__((unused))
> #else /* !__GNUC__ */
You mean "#ifndef const", right?
-- Darin
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]