Skip to content

Commit d735278

Browse files
committed
unix/mpconfigport.h: For MICROPY_NO_ALLOCA=1, don't even include alloca.h.
1 parent e9a684d commit d735278

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

unix/mpconfigport.h

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -232,8 +232,11 @@ extern const struct _mp_obj_fun_builtin_t mp_builtin_open_obj;
232232
void *mmap_region_head; \
233233

234234
// We need to provide a declaration/definition of alloca()
235+
// unless support for it is disabled.
236+
#if !defined(MICROPY_NO_ALLOCA) || MICROPY_NO_ALLOCA == 0
235237
#ifdef __FreeBSD__
236238
#include <stdlib.h>
237239
#else
238240
#include <alloca.h>
239241
#endif
242+
#endif

0 commit comments

Comments
 (0)