kopia lustrzana https://github.com/micropython/micropython
mpy-cross,unix: Include alloca.h for NetBSD.
rodzic
d8ad87843a
commit
b1efc1340a
|
@ -119,7 +119,7 @@ typedef long mp_off_t;
|
||||||
#define MP_PLAT_PRINT_STRN(str, len) (void)0
|
#define MP_PLAT_PRINT_STRN(str, len) (void)0
|
||||||
|
|
||||||
// We need to provide a declaration/definition of alloca()
|
// We need to provide a declaration/definition of alloca()
|
||||||
#ifdef __FreeBSD__
|
#if defined(__FreeBSD__) || defined(__NetBSD__)
|
||||||
#include <stdlib.h>
|
#include <stdlib.h>
|
||||||
#elif defined(_WIN32)
|
#elif defined(_WIN32)
|
||||||
#include <malloc.h>
|
#include <malloc.h>
|
||||||
|
|
|
@ -294,7 +294,7 @@ static inline unsigned long mp_urandom_seed_init(void) {
|
||||||
// We need to provide a declaration/definition of alloca()
|
// We need to provide a declaration/definition of alloca()
|
||||||
// unless support for it is disabled.
|
// unless support for it is disabled.
|
||||||
#if !defined(MICROPY_NO_ALLOCA) || MICROPY_NO_ALLOCA == 0
|
#if !defined(MICROPY_NO_ALLOCA) || MICROPY_NO_ALLOCA == 0
|
||||||
#ifdef __FreeBSD__
|
#if defined(__FreeBSD__) || defined(__NetBSD__)
|
||||||
#include <stdlib.h>
|
#include <stdlib.h>
|
||||||
#else
|
#else
|
||||||
#include <alloca.h>
|
#include <alloca.h>
|
||||||
|
|
Ładowanie…
Reference in New Issue