diff options
| -rw-r--r-- | ports/embed/port/mpconfigport_common.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/ports/embed/port/mpconfigport_common.h b/ports/embed/port/mpconfigport_common.h index 8e19859ed..aa65640fc 100644 --- a/ports/embed/port/mpconfigport_common.h +++ b/ports/embed/port/mpconfigport_common.h @@ -34,8 +34,13 @@ typedef long mp_off_t; // Need to provide a declaration/definition of alloca() #if defined(__FreeBSD__) || defined(__NetBSD__) +// BSD #include <stdlib.h> +#elif defined(_WIN32) +// Windows +#include <malloc.h> #else +// Other OS #include <alloca.h> #endif |
