diff options
| author | Damien George <damien.p.george@gmail.com> | 2016-11-30 12:31:44 +1100 |
|---|---|---|
| committer | Damien George <damien.p.george@gmail.com> | 2016-11-30 12:58:54 +1100 |
| commit | 8b8242954e3cd81fa82c24401f1eee0e516c8251 (patch) | |
| tree | 1930868d389e28e769f0c8136bb0823343af3eb8 /extmod/modurandom.c | |
| parent | c19a395caceb37a29a4ca74a05858cdaf94d3347 (diff) | |
extmod/modurandom: Allow to build with float disabled.
Diffstat (limited to 'extmod/modurandom.c')
| -rw-r--r-- | extmod/modurandom.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/extmod/modurandom.c b/extmod/modurandom.c index 995b0a266..12e56741e 100644 --- a/extmod/modurandom.c +++ b/extmod/modurandom.c @@ -206,9 +206,11 @@ STATIC const mp_rom_map_elem_t mp_module_urandom_globals_table[] = { { MP_ROM_QSTR(MP_QSTR_randrange), MP_ROM_PTR(&mod_urandom_randrange_obj) }, { MP_ROM_QSTR(MP_QSTR_randint), MP_ROM_PTR(&mod_urandom_randint_obj) }, { MP_ROM_QSTR(MP_QSTR_choice), MP_ROM_PTR(&mod_urandom_choice_obj) }, + #if MICROPY_PY_BUILTINS_FLOAT { MP_ROM_QSTR(MP_QSTR_random), MP_ROM_PTR(&mod_urandom_random_obj) }, { MP_ROM_QSTR(MP_QSTR_uniform), MP_ROM_PTR(&mod_urandom_uniform_obj) }, #endif + #endif }; STATIC MP_DEFINE_CONST_DICT(mp_module_urandom_globals, mp_module_urandom_globals_table); |
