From 59ebd47ba627bbec179b1200bd6fce6ecad53ef9 Mon Sep 17 00:00:00 2001 From: Cary R Date: Sat, 5 Dec 2009 18:25:55 -0800 Subject: [PATCH] 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(). --- vpi/wavealloca.h | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/vpi/wavealloca.h b/vpi/wavealloca.h index 27476df6e..5f4b2186e 100644 --- a/vpi/wavealloca.h +++ b/vpi/wavealloca.h @@ -17,6 +17,8 @@ #ifndef alloca #define alloca __builtin_alloca #endif +#else +#include #endif #elif defined(_MSC_VER) #include @@ -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 *