c99_alloca.h: fix #include for MinGW
As with MSVC, include malloc.h but don't redefine alloca. Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=89364 Reviewed-by: José Fonseca <jfonseca@vmware.com>
This commit is contained in:
parent
943784bbcd
commit
098e5bf3b3
|
@ -35,6 +35,10 @@
|
|||
|
||||
# define alloca _alloca
|
||||
|
||||
#elif defined(__MINGW32__)
|
||||
|
||||
# include <malloc.h>
|
||||
|
||||
#else /* !defined(_MSC_VER) */
|
||||
|
||||
# include <alloca.h>
|
||||
|
|
Loading…
Reference in New Issue