grub-devel
[Top][All Lists]
Advanced

[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


From: Robert Millan
Subject: Re: [RFC] Is it okay to just use GNU extensions or should an alternative be provided too?
Date: Sat, 16 Aug 2008 14:39:08 +0200
User-agent: Mutt/1.5.13 (2006-08-11)

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:
> http://grub.enbug.org/BuildingOnNonGnu
> 
> 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.

-- 
Robert Millan

  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."




reply via email to

[Prev in Thread] Current Thread [Next in Thread]