summaryrefslogtreecommitdiff
path: root/py/moduerrno.c
diff options
context:
space:
mode:
authorDan Halbert <halbert@halwitz.org>2019-02-21 11:09:44 -0500
committerDan Halbert <halbert@halwitz.org>2019-02-21 11:09:44 -0500
commit10d3a20f8a639ad8ef5555e2142052190e8a7e13 (patch)
treead72afa87cadb0e3749d60109cffdd768280cc00 /py/moduerrno.c
parentc5dbdbe88c099494cd14790b8c645020538eed27 (diff)
Add CIRCUITPY macro; rename u* only when CIRCUITPY=1
Diffstat (limited to 'py/moduerrno.c')
-rw-r--r--py/moduerrno.c4
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