From: Brian Paul Date: Fri, 27 Feb 2015 20:03:03 +0000 (-0700) Subject: c99_alloca.h: fix #include for MinGW X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=098e5bf3b37431af2a9156789cbc9534f0b70235;p=mesa.git 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 --- diff --git a/include/c99_alloca.h b/include/c99_alloca.h index 6d96d063e4b..7a81c50e0d7 100644 --- a/include/c99_alloca.h +++ b/include/c99_alloca.h @@ -35,6 +35,10 @@ # define alloca _alloca +#elif defined(__MINGW32__) + +# include + #else /* !defined(_MSC_VER) */ # include