|
From: | Vesa Jääskeläinen |
Subject: | Re: [RFC] Is it okay to just use GNU extensions or should an alternative be provided too? |
Date: | Sat, 16 Aug 2008 15:32:28 +0300 |
User-agent: | Thunderbird 2.0.0.16 (Windows/20080708) |
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. > > Is it okay to just use and don't care about enviroments which don't > use/have glibc? > > Or should such GNU extentions just not be used if they can be avoided? > > I doubt it would be good to use many `#ifdef _GNU_SOURCE' in the code. Please use what ever we have on grub source code already. Then it work fine also in standalone grub. It should be possible to use existing functions. I see asprintf just a wrapper to malloc/sprintf for which there are already versions present on grub.
[Prev in Thread] | Current Thread | [Next in Thread] |