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." _______________________________________________ Grub-devel mailing list Grub-devel@gnu.org http://lists.gnu.org/mailman/listinfo/grub-devel