aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBrian Paul <[email protected]>2015-02-27 13:03:03 -0700
committerBrian Paul <[email protected]>2015-02-27 15:22:24 -0700
commit098e5bf3b37431af2a9156789cbc9534f0b70235 (patch)
tree3efdf2c7d8335702aa2646707e7dc088181af1ca
parent943784bbcd3e44254fd5e9b27b917b49c37206fb (diff)
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]>
-rw-r--r--include/c99_alloca.h4
1 files changed, 4 insertions, 0 deletions
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 <malloc.h>
+
#else /* !defined(_MSC_VER) */
# include <alloca.h>