From a840e7fb05d1feafb175a4ad4d6f5680f3164b76 Mon Sep 17 00:00:00 2001 From: Romain Goyet Date: Fri, 3 Apr 2020 22:42:28 -0400 Subject: [PATCH] [liba] Define SEEK_CUR For some reason it was defined in Python and raised re-def errors --- liba/include/unistd.h | 1 + python/port/mpconfigport.h | 2 -- 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/liba/include/unistd.h b/liba/include/unistd.h index 8dadc4ad4..9b95be0b3 100644 --- a/liba/include/unistd.h +++ b/liba/include/unistd.h @@ -2,5 +2,6 @@ #define LIBA_UNISTD_H #define SEEK_SET 0 +#define SEEK_CUR 1 #endif diff --git a/python/port/mpconfigport.h b/python/port/mpconfigport.h index bfff743d6..53c3bb90a 100644 --- a/python/port/mpconfigport.h +++ b/python/port/mpconfigport.h @@ -119,8 +119,6 @@ typedef uintptr_t mp_uint_t; // must be pointer size typedef long mp_off_t; -#define SEEK_CUR 1 - // extra built in names to add to the global namespace #define MICROPY_PORT_BUILTINS \ { MP_OBJ_NEW_QSTR(MP_QSTR_open), (mp_obj_t)&mp_builtin_open_obj }, \