Update wavealloca.h to fix MinGW compilation warning
This patch fixes a warning when compiling vpi/sys_lxt2.c under
MinGW regarding the definition of alloca().
(cherry picked from commit 59ebd47ba6)
This commit is contained in:
parent
5479aaf721
commit
8ef7344ea5
|
|
@ -17,6 +17,8 @@
|
||||||
#ifndef alloca
|
#ifndef alloca
|
||||||
#define alloca __builtin_alloca
|
#define alloca __builtin_alloca
|
||||||
#endif
|
#endif
|
||||||
|
#else
|
||||||
|
#include <malloc.h>
|
||||||
#endif
|
#endif
|
||||||
#elif defined(_MSC_VER)
|
#elif defined(_MSC_VER)
|
||||||
#include <malloc.h>
|
#include <malloc.h>
|
||||||
|
|
@ -26,8 +28,11 @@
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* $Id: wavealloca.h,v 1.2 2007/08/26 21:35:50 gtkwave Exp $
|
* $Id: wavealloca.h,v 1.3 2009/12/06 00:10:17 gtkwave Exp $
|
||||||
* $Log: wavealloca.h,v $
|
* $Log: wavealloca.h,v $
|
||||||
|
* Revision 1.3 2009/12/06 00:10:17 gtkwave
|
||||||
|
* mingw compatibility fix from icarus
|
||||||
|
*
|
||||||
* Revision 1.2 2007/08/26 21:35:50 gtkwave
|
* Revision 1.2 2007/08/26 21:35:50 gtkwave
|
||||||
* integrated global context management from SystemOfCode2007 branch
|
* integrated global context management from SystemOfCode2007 branch
|
||||||
*
|
*
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue