On Tue, 3 Jul 2012, Niels Möller wrote:
When I try cross-compiling using
./configure '--host=i586-mingw32msvc'
I get warnings on alloca usage, e.g.,
/home/nisse/hack/nettle/cbc.c: In function `nettle_cbc_decrypt': /home/nisse/hack/nettle/cbc.c:101: warning: implicit declaration of function `alloca' /home/nisse/hack/nettle/cbc.c:101: warning: incompatible implicit declaration of built-in function `alloca'
Which header should I include to get a proper declaration? In config.h, I have some boilerplate code which includes malloc.h, but only if *not* using gcc. Should I always include malloc.h if it exists, regardless of the compiler used?
That sounds like a sane solution to me - if it exists, including it shouldn't hurt I guess.
// Martin