From 016dba0e988352015bcbf43ec84f3b67e2244dc4 Mon Sep 17 00:00:00 2001 From: Damien George Date: Fri, 7 Oct 2016 14:09:59 +1100 Subject: unix: Use common RAISE_ERRNO macro from mphalport.h. --- unix/modos.c | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) (limited to 'unix/modos.c') diff --git a/unix/modos.c b/unix/modos.c index b29805269..36945720d 100644 --- a/unix/modos.c +++ b/unix/modos.c @@ -37,6 +37,7 @@ #include "py/nlr.h" #include "py/runtime.h" #include "py/objtuple.h" +#include "py/mphal.h" #include "extmod/misc.h" // Can't include this, as FATFS structure definition is required, @@ -51,10 +52,6 @@ extern const mp_obj_type_t mp_fat_vfs_type; #define USE_STATFS 1 #endif -#define RAISE_ERRNO(err_flag, error_val) \ - { if (err_flag == -1) \ - { mp_raise_OSError(error_val); } } - STATIC mp_obj_t mod_os_stat(mp_obj_t path_in) { struct stat sb; mp_uint_t len; -- cgit v1.2.3