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

Author: Brian Paul <[email protected]>
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 <[email protected]>

---

 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>

_______________________________________________
mesa-commit mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/mesa-commit

Reply via email to