projects
/
mesa.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
943784b
)
c99_alloca.h: fix #include for MinGW
author
Brian Paul
<brianp@vmware.com>
Fri, 27 Feb 2015 20:03:03 +0000
(13:03 -0700)
committer
Brian 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
patch
|
blob
|
history
diff --git
a/include/c99_alloca.h
b/include/c99_alloca.h
index 6d96d063e4bacda39f88d28cd725ce37c613eb1c..7a81c50e0d7f499ec62f91538157fe4446a273c6 100644
(file)
--- 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>