summaryrefslogtreecommitdiffstats
path: root/include/c99_alloca.h
diff options
context:
space:
mode:
authorVinson Lee <vlee@freedesktop.org>2015-03-01 13:52:00 -0700
committerBrian Paul <brianp@vmware.com>2015-03-02 09:26:36 -0700
commit3de01d2fe46652471362bcb8a527f59e0bb81cfc (patch)
tree03758f7e574fe2f8375a8e2aea7d48632c4c2099 /include/c99_alloca.h
parent6f0e9c2e393ba17829e1338dc035c25f22a2718c (diff)
downloadexternal_mesa3d-3de01d2fe46652471362bcb8a527f59e0bb81cfc.zip
external_mesa3d-3de01d2fe46652471362bcb8a527f59e0bb81cfc.tar.gz
external_mesa3d-3de01d2fe46652471362bcb8a527f59e0bb81cfc.tar.bz2
c99_alloca.h: Include stdlib.h on all non-Windows.
Fix build on FreeBSD. Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=89364 Signed-off-by: Vinson Lee <vlee@freedesktop.org> Tested-by: Brian Paul <brianp@vmware.com>
Diffstat (limited to 'include/c99_alloca.h')
-rw-r--r--include/c99_alloca.h6
1 files changed, 1 insertions, 5 deletions
diff --git a/include/c99_alloca.h b/include/c99_alloca.h
index 7a81c50..575f719 100644
--- a/include/c99_alloca.h
+++ b/include/c99_alloca.h
@@ -35,13 +35,9 @@
# define alloca _alloca
-#elif defined(__MINGW32__)
-
-# include <malloc.h>
-
#else /* !defined(_MSC_VER) */
-# include <alloca.h>
+# include <stdlib.h>
#endif /* !defined(_MSC_VER) */