From 6eb0607a531c755bebd0f757442874f48cc4312b Mon Sep 17 00:00:00 2001 From: Dan Halbert Date: Fri, 20 Oct 2023 10:43:22 -0400 Subject: [PATCH] fix build when MICROPY_PY_ERRNO is 0 --- py/moderrno.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) 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