Skip to content

Commit 6eb0607

Browse files
committed
fix build when MICROPY_PY_ERRNO is 0
1 parent 4b42a6f commit 6eb0607

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

py/moderrno.c

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -121,9 +121,6 @@ qstr mp_errno_to_str(mp_obj_t errno_val) {
121121
#endif
122122
}
123123

124-
#endif // MICROPY_PY_UERRNO
125-
126-
127124
// For commonly encountered errors, return human readable strings, otherwise try errno name
128125
const char *mp_common_errno_to_str(mp_obj_t errno_val, char *buf, size_t len) {
129126
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) {
171168
#endif
172169
return msg[0] != '\0' ? msg : NULL;
173170
}
171+
172+
#endif // MICROPY_PY_ERRNO

0 commit comments

Comments
 (0)