Re: gmacros.h patch
- From: Eric Lemings <eric b lemings lmco com>
- To: Owen Taylor <otaylor redhat com>
- Cc: gtk-devel-list gnome org
- Subject: Re: gmacros.h patch
- Date: Thu, 12 Apr 2001 15:14:46 -0600
Owen Taylor wrote:
> Can you explain in more detail?
>
> Is this GCC or G++? Why is const being defined as a macro?
In my software package, I have something like the following in my
configure.in file:
AM_PROG_CPLUSPLUS
...
AM_PATH_GLIB_2_0(1.3.3, ...)
...
AC_C_CONST
AC_LANG_CPP
I may have had the last two reversed but that shouldn't matter. With
gcc-2.95.3, the AC_C_CONST macro determiend that const was broken as so
defined it as nothing:
#define const
That caused a compile error when it found the G_GNUC_CONST macro with an
empty 'attribute (( ))'.
Eric.
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]