gcc-2.7.2.1 [was: Compile problem - libdb]
David Relson
relson at osagesoftware.com
Mon Jan 19 05:18:16 CET 2004
On Mon, 19 Jan 2004 04:45:47 +0100
Matthias Andree <matthias.andree at gmx.de> wrote:
> On Sun, 18 Jan 2004, David Relson wrote:
>
> > You're making progress. You compiler is on the old side, but the
> > problem is more in the header files. The good news is that the fix
> > is easy (I think). Add the following three lines before the last
> > non-empty line in file src/system.h
> >
> > #ifndef __attribute__
> > #define __attribute__(x)
> > #endif
>
> This is not working, you could write #if 1 instead of the #ifndef.
>
> #ifdef __attribute__
> #warning "first branch, use attributes"
> #else
> #warning "no attributes"
> #endif
>
> results in "no attributes" on GCC 3.3.1.
>
> This should be #ifndef __GNUC__ instead, as we assume GNUC
> __attribute__s.
The user in question has gcc-2.7.2.1 Possibly "#if !__GNUC_PREREQ (2,
8)", or similar, would be appropriate.
More information about the Bogofilter
mailing list