tech-userlevel archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: Adding <alloca.h> ?



Le jeu. 13 mai 2021 à 12:58, Martin Husemann <martin%duskware.de@localhost> a écrit :
>
> On Thu, May 13, 2021 at 12:51:45PM +0200, Jaromír Dole?ek wrote:
> > On the contrary, Linux <alloca.h> explicitely #undefs alloca(), then
> > #define alloca() as __builtin_alloca(), so it always works, regardless
> > which -std.
>
> But isn't that obviously wrong and our version the correct one?
> (Well, maybe we should never provide anything if there is no __builtin_alloca())

It does the #define alloca guarded with #ifdef __GNUC__, so it's fine
as long as you don't expect this header to work with <= gcc 2.

Jaromir


Home | Main Index | Thread Index | Old Index