[prev in list] [next in list] [prev in thread] [next in thread]
List: kde-commits
Subject: Re: kdemultimedia/mpeglib/lib/util/render/dither2YUV
From: Andy Fawcett <andy () athame ! co ! uk>
Date: 2003-08-25 14:35:38
[Download RAW message or body]
On Monday 25 August 2003 17:19, Adrian Schroeter wrote:
> On Monday 25 August 2003 16:00, Andy Fawcett wrote:
> > Nope, doesn't work.
> >
> > The problem seems to be that, although __GNUC__ is defined,
> > __GNUC_PREREQ is not known by the system.
> >
> > I'm no compiler expert, so I have no idea how to find out if this
> > is an allowed test.
> >
> > Please let me know if there's anything else I can do here to help.
>
> this one has really to work ... but it would be anyway interessting,
> why the gcc on freebsd does not know this ...
>
> #ifdef __GNUC_PREREQ
> #if __GNUC_PREREQ (3,1)
> # define __attribute_used__ __attribute__ ((__used__))
> #else
> # define __attribute_used__
> #endif
> #else
> # define __attribute_used__
> #endif
That compiles/links fine now. I can't test it until later (it's on a
remote box), but I will let you know if there are problems.
Thanks,
Andy
(oh, as to why it FreeBSD's gcc doesn't know it, I have no idea. In an
earlier response you mentioned glibc's sys/cdefs.h, but we don't use
glibc. Could be totally unrelated though...)
--
Andy Fawcett | andy@athame.co.uk
| tap@kde.org
"In an open world without walls and fences, | tap@lspace.org
we wouldn't need Windows and Gates." -- anon | tap@fruitsalad.org
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic