summaryrefslogtreecommitdiff
path: root/py/builtintables.c
diff options
context:
space:
mode:
authorDamien George <damien.p.george@gmail.com>2014-06-03 12:33:38 +0000
committerDamien George <damien.p.george@gmail.com>2014-06-03 12:33:38 +0000
commit65ec33200ada958066bea0914120045acdb5e410 (patch)
tree7d3fcb208a18b21e4175207d3eb05da1daa94bc5 /py/builtintables.c
parentbcb6ca4d5e926d9571d150fb045c5ac4b53f8ecd (diff)
py: Fix configuration of math module.
Diffstat (limited to 'py/builtintables.c')
-rw-r--r--py/builtintables.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/py/builtintables.c b/py/builtintables.c
index 628514da1..49b0ed93e 100644
--- a/py/builtintables.c
+++ b/py/builtintables.c
@@ -171,12 +171,12 @@ STATIC const mp_map_elem_t mp_builtin_module_table[] = {
{ MP_OBJ_NEW_QSTR(MP_QSTR_struct), (mp_obj_t)&mp_module_struct },
#endif
-#if MICROPY_PY_BUILTINS_FLOAT
+#if MICROPY_PY_MATH
{ MP_OBJ_NEW_QSTR(MP_QSTR_math), (mp_obj_t)&mp_module_math },
+#endif
#if MICROPY_PY_CMATH
{ MP_OBJ_NEW_QSTR(MP_QSTR_cmath), (mp_obj_t)&mp_module_cmath },
#endif
-#endif
#if MICROPY_PY_SYS
{ MP_OBJ_NEW_QSTR(MP_QSTR_sys), (mp_obj_t)&mp_module_sys },
#endif