windows: Make it compile with latest changes to py core.
This commit is contained in:
parent
10072b72a5
commit
6c6f9d6782
|
@ -59,7 +59,7 @@ static void execute_from_lexer(mp_lexer_t *lex, mp_parse_input_kind_t input_kind
|
|||
printf("----------------\n");
|
||||
*/
|
||||
|
||||
mp_obj_t module_fun = mp_compile(pn, source_name, is_repl);
|
||||
mp_obj_t module_fun = mp_compile(pn, source_name, MP_EMIT_OPT_NONE, is_repl);
|
||||
|
||||
if (module_fun == mp_const_none) {
|
||||
// compile error
|
||||
|
@ -230,9 +230,3 @@ int main(int argc, char **argv) {
|
|||
//printf("total bytes = %d\n", m_get_total_bytes_allocated());
|
||||
return 0;
|
||||
}
|
||||
|
||||
// for sqrt
|
||||
#include <math.h>
|
||||
machine_float_t machine_sqrt(machine_float_t x) {
|
||||
return sqrt(x);
|
||||
}
|
||||
|
|
|
@ -13,7 +13,7 @@
|
|||
#define MICROPY_ENABLE_REPL_HELPERS (1)
|
||||
#define MICROPY_ENABLE_LEXER_UNIX (1)
|
||||
#define MICROPY_FLOAT_IMPL (MICROPY_FLOAT_IMPL_DOUBLE)
|
||||
#define MICROPY_LONGINT_IMPL (MICROPY_LONGINT_IMPL_LONGLONG)
|
||||
#define MICROPY_LONGINT_IMPL (MICROPY_LONGINT_IMPL_MPZ)
|
||||
|
||||
// type definitions for the specific machine
|
||||
|
||||
|
@ -31,6 +31,5 @@ typedef unsigned int machine_uint_t; // must be pointer size
|
|||
|
||||
typedef void *machine_ptr_t; // must be of pointer size
|
||||
typedef const void *machine_const_ptr_t; // must be of pointer size
|
||||
typedef double machine_float_t;
|
||||
|
||||
machine_float_t machine_sqrt(machine_float_t x);
|
||||
extern const struct _mp_obj_fun_native_t mp_builtin_open_obj;
|
||||
|
|
Loading…
Reference in a new issue