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().
This commit is contained in:
Cary R 2009-12-05 18:25:55 -08:00 committed by Stephen Williams
parent 26ab32ac3b
commit 59ebd47ba6
1 changed files with 6 additions and 1 deletions

View File

@ -17,6 +17,8 @@
#ifndef alloca
#define alloca __builtin_alloca
#endif
#else
#include <malloc.h>
#endif
#elif defined(_MSC_VER)
#include <malloc.h>
@ -26,8 +28,11 @@
#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 $
* 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
* integrated global context management from SystemOfCode2007 branch
*