From b294a7e3c9b84aad6c331128a51e0d69e7845141 Mon Sep 17 00:00:00 2001 From: Damien George Date: Tue, 3 Jun 2014 13:43:20 +0100 Subject: [PATCH] py: Properly fix configuration of float and math module. --- py/builtintables.c | 2 ++ 1 file changed, 2 insertions(+) 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