summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--include/alloca.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/include/alloca.h b/include/alloca.h
index f61b817a..d2e6f1c6 100644
--- a/include/alloca.h
+++ b/include/alloca.h
@@ -10,6 +10,10 @@ extern "C" {
void *alloca(size_t);
+#ifdef __GNUC__
+#define alloca __builtin_alloca
+#endif
+
#ifdef __cplusplus
}
#endif