@@ -206,6 +206,7 @@ typedef long mp_off_t;
#define MP_PLAT_PRINT_STRN(str, len) mp_hal_stdout_tx_strn_cooked(str, len)
+#define mp_import_stat(x) mp_posix_import_stat(x)
// extra built in names to add to the global namespace
#define MICROPY_PORT_BUILTINS \
@@ -61,7 +61,7 @@ STATIC mp_import_stat_t mp_import_stat_any(const char *path) {
return st;
}
#endif
- return mp_posix_import_stat(path);
+ return mp_import_stat(path);
STATIC mp_import_stat_t stat_file_py_or_mpy(vstr_t *path) {