1 parent 4297fed commit 26a95aeCopy full SHA for 26a95ae
1 file changed
windows/mpconfigport.h
@@ -76,6 +76,9 @@ extern const struct _mp_obj_module_t mp_module_time;
76
#define MICROPY_PORT_BUILTIN_MODULES \
77
{ MP_OBJ_NEW_QSTR(MP_QSTR_time), (mp_obj_t)&mp_module_time }, \
78
79
+// We need to provide a declaration/definition of alloca()
80
+#include <malloc.h>
81
+
82
#include "realpath.h"
83
#include "init.h"
84
@@ -114,7 +117,6 @@ void msec_sleep(double msec);
114
117
115
118
#include <stddef.h> //for NULL
116
119
#include <assert.h> //for assert
-#include <malloc.h> //for alloca()
120
121
// Functions implemented in platform code
122
0 commit comments