c99_alloca.h: fix #include for MinGW
authorBrian Paul <brianp@vmware.com>
Fri, 27 Feb 2015 20:03:03 +0000 (13:03 -0700)
committerBrian Paul <brianp@vmware.com>
Fri, 27 Feb 2015 22:22:24 +0000 (15:22 -0700)
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>
include/c99_alloca.h

index 6d96d063e4bacda39f88d28cd725ce37c613eb1c..7a81c50e0d7f499ec62f91538157fe4446a273c6 100644 (file)
 
 #  define alloca _alloca
 
+#elif defined(__MINGW32__)
+
+#  include <malloc.h>
+
 #else /* !defined(_MSC_VER) */
 
 #  include <alloca.h>