diff options
| author | Dan Halbert <halbert@halwitz.org> | 2019-02-21 11:09:44 -0500 |
|---|---|---|
| committer | Dan Halbert <halbert@halwitz.org> | 2019-02-21 11:09:44 -0500 |
| commit | 10d3a20f8a639ad8ef5555e2142052190e8a7e13 (patch) | |
| tree | ad72afa87cadb0e3749d60109cffdd768280cc00 /py/moduerrno.c | |
| parent | c5dbdbe88c099494cd14790b8c645020538eed27 (diff) | |
Add CIRCUITPY macro; rename u* only when CIRCUITPY=1
Diffstat (limited to 'py/moduerrno.c')
| -rw-r--r-- | py/moduerrno.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/py/moduerrno.c b/py/moduerrno.c index c5daae468..7915603e4 100644 --- a/py/moduerrno.c +++ b/py/moduerrno.c @@ -84,7 +84,11 @@ STATIC const mp_obj_dict_t errorcode_dict = { #endif STATIC const mp_rom_map_elem_t mp_module_uerrno_globals_table[] = { +#if CIRCUITPY { MP_ROM_QSTR(MP_QSTR___name__), MP_ROM_QSTR(MP_QSTR_errno) }, +#else + { MP_ROM_QSTR(MP_QSTR___name__), MP_ROM_QSTR(MP_QSTR_uerrno) }, +#endif #if MICROPY_PY_UERRNO_ERRORCODE { MP_ROM_QSTR(MP_QSTR_errorcode), MP_ROM_PTR(&errorcode_dict) }, #endif |
