From 89ff506513d52c0c415b2cf45335d60cefac527d Mon Sep 17 00:00:00 2001 From: Andrew Leech Date: Wed, 12 Dec 2018 16:50:55 +1100 Subject: py: Update and rework build system for including external C modules. How to use this feature is documented in docs/develop/cmodules.rst. --- py/objmodule.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'py/objmodule.c') diff --git a/py/objmodule.c b/py/objmodule.c index 04d210260..9191c73ec 100644 --- a/py/objmodule.c +++ b/py/objmodule.c @@ -31,6 +31,8 @@ #include "py/runtime.h" #include "py/builtin.h" +#include "genhdr/moduledefs.h" + STATIC void module_print(const mp_print_t *print, mp_obj_t self_in, mp_print_kind_t kind) { (void)kind; mp_obj_module_t *self = MP_OBJ_TO_PTR(self_in); -- cgit v1.2.3