From c58dc7f091b6809de83064e8c2444757ad7c962a Mon Sep 17 00:00:00 2001 From: Damien George Date: Tue, 7 Jun 2022 14:15:51 +1000 Subject: [PATCH] pic16bit: Use 1 byte for qstr hash len and include header to fix build. Signed-off-by: Damien George --- ports/pic16bit/main.c | 1 + ports/pic16bit/mpconfigport.h | 1 + 2 files changed, 2 insertions(+) diff --git a/ports/pic16bit/main.c b/ports/pic16bit/main.c index adb9276071..e6481bafb6 100644 --- a/ports/pic16bit/main.c +++ b/ports/pic16bit/main.c @@ -29,6 +29,7 @@ #include #include +#include "py/builtin.h" #include "py/compile.h" #include "py/runtime.h" #include "py/gc.h" diff --git a/ports/pic16bit/mpconfigport.h b/ports/pic16bit/mpconfigport.h index 52b1701ea3..e97a465028 100644 --- a/ports/pic16bit/mpconfigport.h +++ b/ports/pic16bit/mpconfigport.h @@ -29,6 +29,7 @@ // options to control how MicroPython is built #define MICROPY_OBJ_REPR (MICROPY_OBJ_REPR_B) #define MICROPY_ALLOC_PATH_MAX (64) +#define MICROPY_QSTR_BYTES_IN_HASH (1) #define MICROPY_EMIT_X64 (0) #define MICROPY_EMIT_THUMB (0) #define MICROPY_EMIT_INLINE_THUMB (0)