Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
Zwinkau
libfirm
Commits
ee4d0c01
Commit
ee4d0c01
authored
Jan 10, 2014
by
Christoph Mallon
Browse files
Fix alloca detection.
parent
a6dff0b1
Changes
1
Hide whitespace changes
Inline
Side-by-side
include/libfirm/adt/xmalloc.h
View file @
ee4d0c01
...
...
@@ -18,12 +18,14 @@
#include
<string.h>
/* Includes for alloca() */
#if defined(__GNUC__) && !defined(alloca)
#define alloca(x) __builtin_alloca(x)
#elif defined(__WIN32)
#include
<malloc.h>
#else
#error do not know how to get alloca
#ifndef alloca
# if defined(__GNUC__)
# define alloca(x) __builtin_alloca(x)
# elif defined(__WIN32)
# include <malloc.h>
# else
# error do not know how to get alloca
# endif
#endif
#include
"../begin.h"
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment