diff --git a/py/moderrno.c b/py/moderrno.c index 4e07d9e0f8..405bcb22bb 100644 --- a/py/moderrno.c +++ b/py/moderrno.c @@ -121,9 +121,6 @@ qstr mp_errno_to_str(mp_obj_t errno_val) { #endif } -#endif // MICROPY_PY_UERRNO - - // For commonly encountered errors, return human readable strings, otherwise try errno name const char *mp_common_errno_to_str(mp_obj_t errno_val, char *buf, size_t len) { if (!mp_obj_is_small_int(errno_val)) { @@ -171,3 +168,5 @@ const char *mp_common_errno_to_str(mp_obj_t errno_val, char *buf, size_t len) { #endif return msg[0] != '\0' ? msg : NULL; } + +#endif // MICROPY_PY_ERRNO