Skip to content
Snippets Groups Projects
Commit a559098f authored by Damien George's avatar Damien George
Browse files

py/mperrno: Allow mperrno.h to be correctly included before other hdrs.

Before this patch the mperrno.h file could be included and would silently
succeed with incorrect config settings, because mpconfig.h was not yet
included.
parent 1ed33565
No related branches found
No related tags found
No related merge requests found
......@@ -26,6 +26,8 @@
#ifndef MICROPY_INCLUDED_PY_MPERRNO_H
#define MICROPY_INCLUDED_PY_MPERRNO_H
#include "py/mpconfig.h"
#if MICROPY_USE_INTERNAL_ERRNO
// MP_Exxx errno's are defined directly as numeric values
......@@ -138,7 +140,11 @@
#endif
#if MICROPY_PY_UERRNO
#include "py/obj.h"
qstr mp_errno_to_str(mp_obj_t errno_val);
#endif
#endif // MICROPY_INCLUDED_PY_MPERRNO_H
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment