Mesa (master): c99_alloca.h: fix #include for MinGW

Brian Paul brianp at kemper.freedesktop.org
Fri Feb 27 22:27:27 UTC 2015


Module: Mesa
Branch: master
Commit: 098e5bf3b37431af2a9156789cbc9534f0b70235
URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=098e5bf3b37431af2a9156789cbc9534f0b70235

Author: Brian Paul <brianp at vmware.com>
Date:   Fri Feb 27 13:03:03 2015 -0700

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 at vmware.com>

---

 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>




More information about the mesa-commit mailing list