about summary refs log tree commit diff
path: root/include/alloca.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/alloca.h')
-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