summaryrefslogtreecommitdiff
path: root/py/modcmath.c
diff options
context:
space:
mode:
Diffstat (limited to 'py/modcmath.c')
-rw-r--r--py/modcmath.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/py/modcmath.c b/py/modcmath.c
index fb1f2a8fc..44a4736e0 100644
--- a/py/modcmath.c
+++ b/py/modcmath.c
@@ -149,4 +149,6 @@ const mp_obj_module_t mp_module_cmath = {
.globals = (mp_obj_dict_t *)&mp_module_cmath_globals,
};
-#endif // MICROPY_PY_BUILTINS_FLOAT && MICROPY_PY_CMATH
+MP_REGISTER_MODULE(MP_QSTR_cmath, mp_module_cmath, MICROPY_PY_BUILTINS_FLOAT && MICROPY_PY_BUILTINS_COMPLEX && MICROPY_PY_CMATH);
+
+#endif // MICROPY_PY_BUILTINS_FLOAT && MICROPY_PY_BUILTINS_COMPLEX && MICROPY_PY_CMATH