summaryrefslogtreecommitdiffstatshomepage
path: root/py
diff options
context:
space:
mode:
authorDamien George <damien.p.george@gmail.com>2014-06-03 13:43:20 +0100
committerDamien George <damien.p.george@gmail.com>2014-06-03 13:43:20 +0100
commitb294a7e3c9b84aad6c331128a51e0d69e7845141 (patch)
tree1d194f9ba2e71f00aa2cba26186e1afaa85c635e /py
parent3f5226246517be2f28d4f23d6e4c202047915f83 (diff)
downloadmicropython-b294a7e3c9b84aad6c331128a51e0d69e7845141.tar.gz
micropython-b294a7e3c9b84aad6c331128a51e0d69e7845141.zip
py: Properly fix configuration of float and math module.
Diffstat (limited to 'py')
-rw-r--r--py/builtintables.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/py/builtintables.c b/py/builtintables.c
index 49b0ed93e4..1041c2598c 100644
--- a/py/builtintables.c
+++ b/py/builtintables.c
@@ -171,12 +171,14 @@ 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