[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [RFC] Is it okay to just use GNU extensions or should an alternative
Re: [RFC] Is it okay to just use GNU extensions or should an alternative be provided too?
Sat, 16 Aug 2008 14:39:08 +0200
On Sat, Aug 16, 2008 at 02:05:25PM +0200, Felix Zielcke wrote:
> I just talked with Marco on IRC.
> I have just used asprintf in one of my patches, but now I discovered:
> So I became a bit unsure now if it's okay to just use asprintf.
IIRC, asprintf is widely available. At least it's present on *BSD.
> I doubt it would be good to use many `#ifdef _GNU_SOURCE' in the code.
_GNU_SOURCE is used to tell Glibc to enable GNU extensions. When you want
to check from Glibc whether you're on Glibc, __GLIBC__ indicates that.
But using autoconf checks is better anyway.
The DRM opt-in fallacy: "Your data belongs to us. We will decide when (and
how) you may access your data; but nobody's threatening your freedom: we
still allow you to remove your data and not access it at all."