Mesa (master): c99_alloca.h: Include stdlib.h on all non-Windows.
Brian Paul
brianp at kemper.freedesktop.org
Mon Mar 2 16:26:28 UTC 2015
Module: Mesa
Branch: master
Commit: 3de01d2fe46652471362bcb8a527f59e0bb81cfc
URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=3de01d2fe46652471362bcb8a527f59e0bb81cfc
Author: Vinson Lee <vlee at freedesktop.org>
Date: Sun Mar 1 13:52:00 2015 -0700
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 at freedesktop.org>
Tested-by: Brian Paul <brianp at vmware.com>
---
include/c99_alloca.h | 6 +-----
1 file changed, 1 insertion(+), 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) */
More information about the mesa-commit
mailing list