From: Vincent T. <vin...@gm...> - 2011-11-01 14:58:30
|
On Tue, Nov 1, 2011 at 10:45 AM, JonY <jo...@us...> wrote: > On 11/1/2011 14:43, Ozkan Sezer wrote: > > On Tue, Nov 1, 2011 at 1:50 AM, Vincent Torri <vin...@gm...> > wrote: > >> hey > >> > >> When using alloca in an autotooled project, the autoconf manual says > this: > >> > >> > http://www.gnu.org/software/autoconf/manual/autoconf.html#Particular-Functions > >> > >> but adding that piece of code leads to that warning: > >> > >> eina_prefix.c:34:0: warning: "alloca" redefined [enabled by default] > >> > /home/torri/local/opt/mingw-w64-x86_32/bin/../lib/gcc/i686-w64-mingw32/4.7.0/../../../../i686-w64-mingw32/include/malloc.h:183:0: > >> note: this is the location of the previous definition > >> > > > > #elif defined _MSC_VER is the key, I guess. Better check would be > > #elif defined _WIN32 > > > > You can also check if alloca.h exists and include that instead, at least > that's what binutils does. > it's already done by #ifdef HAVE_ALLOCA_H # include <alloca.h> Vincent Torri |