mirror of
https://github.com/steveicarus/iverilog.git
synced 2026-09-07 19:56:53 +02:00
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:
+6
-1
@@ -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
|
||||
*
|
||||
|
||||
Reference in New Issue
Block a user