mirror of
https://github.com/micropython/micropython.git
synced 2025-12-16 09:50:15 +01:00
embed: Fix alloca include for FreeBSD and NetBSD.
Signed-off-by: darc <darcagn@protonmail.com>
This commit is contained in:
@@ -33,6 +33,10 @@ typedef uintptr_t mp_uint_t; // must be pointer size
|
|||||||
typedef long mp_off_t;
|
typedef long mp_off_t;
|
||||||
|
|
||||||
// Need to provide a declaration/definition of alloca()
|
// Need to provide a declaration/definition of alloca()
|
||||||
|
#if defined(__FreeBSD__) || defined(__NetBSD__)
|
||||||
|
#include <stdlib.h>
|
||||||
|
#else
|
||||||
#include <alloca.h>
|
#include <alloca.h>
|
||||||
|
#endif
|
||||||
|
|
||||||
#define MICROPY_MPHALPORT_H "port/mphalport.h"
|
#define MICROPY_MPHALPORT_H "port/mphalport.h"
|
||||||
|
|||||||
Reference in New Issue
Block a user