diff --git a/py/obj.h b/py/obj.h index d46fd7595..356e722dc 100644 --- a/py/obj.h +++ b/py/obj.h @@ -398,7 +398,7 @@ mp_obj_t mp_obj_len_maybe(mp_obj_t o_in); /* may return MP_OBJ_NULL */ // bool // TODO make lower case when it has proven itself -inline mp_obj_t MP_BOOL(machine_int_t x) { return x ? mp_const_true : mp_const_false; } +static inline mp_obj_t MP_BOOL(machine_int_t x) { return x ? mp_const_true : mp_const_false; } // cell mp_obj_t mp_obj_cell_get(mp_obj_t self_in); diff --git a/py/qstr.h b/py/qstr.h index 779ebcb4a..994c41808 100644 --- a/py/qstr.h +++ b/py/qstr.h @@ -12,7 +12,7 @@ enum { #include "build/py/qstrdefs.generated.h" #undef Q MP_QSTR_number_of, -} category_t; +}; typedef machine_uint_t qstr;