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:
Brian Paul 2015-02-27 13:03:03 -07:00
parent 943784bbcd
commit 098e5bf3b3
1 changed files with 4 additions and 0 deletions

View File

@ -35,6 +35,10 @@
# define alloca _alloca
#elif defined(__MINGW32__)
# include <malloc.h>
#else /* !defined(_MSC_VER) */
# include <alloca.h>