[Mesa-dev] [PATCH] c99_alloca.h: fix #include for MinGW
Brian Paul
brianp at vmware.com
Fri Feb 27 12:07:39 PST 2015
As with MSVC, include malloc.h but don't redefine alloca.
Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=89364
---
include/c99_alloca.h | 4 ++++
1 file changed, 4 insertions(+)
diff --git a/include/c99_alloca.h b/include/c99_alloca.h
index 6d96d06..7a81c50 100644
--- a/include/c99_alloca.h
+++ b/include/c99_alloca.h
@@ -35,6 +35,10 @@
# define alloca _alloca
+#elif defined(__MINGW32__)
+
+# include <malloc.h>
+
#else /* !defined(_MSC_VER) */
# include <alloca.h>
--
1.9.1
More information about the mesa-dev
mailing list