summaryrefslogtreecommitdiffstatshomepage
diff options
context:
space:
mode:
authorPaul Sokolovsky <pfalcon@users.sourceforge.net>2015-12-02 16:05:02 +0200
committerPaul Sokolovsky <pfalcon@users.sourceforge.net>2015-12-02 16:05:02 +0200
commitd735278c9f2e14dba51bd75e4152065b81925152 (patch)
tree03a0f48c40cdbbe97a2238601f29445b7ef0638f
parente9a684d741bd94163af900b321b10ec8e677eeeb (diff)
downloadmicropython-d735278c9f2e14dba51bd75e4152065b81925152.tar.gz
micropython-d735278c9f2e14dba51bd75e4152065b81925152.zip
unix/mpconfigport.h: For MICROPY_NO_ALLOCA=1, don't even include alloca.h.
-rw-r--r--unix/mpconfigport.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/unix/mpconfigport.h b/unix/mpconfigport.h
index c6061f2254..587af23c15 100644
--- a/unix/mpconfigport.h
+++ b/unix/mpconfigport.h
@@ -232,8 +232,11 @@ extern const struct _mp_obj_fun_builtin_t mp_builtin_open_obj;
void *mmap_region_head; \
// We need to provide a declaration/definition of alloca()
+// unless support for it is disabled.
+#if !defined(MICROPY_NO_ALLOCA) || MICROPY_NO_ALLOCA == 0
#ifdef __FreeBSD__
#include <stdlib.h>
#else
#include <alloca.h>
#endif
+#endif