diff options
author | Damien George <damien@micropython.org> | 2022-06-07 14:15:51 +1000 |
---|---|---|
committer | Damien George <damien@micropython.org> | 2022-06-07 16:55:18 +1000 |
commit | c58dc7f091b6809de83064e8c2444757ad7c962a (patch) | |
tree | 49e741d4eab5f6ba1ca6c6fc85a1ec2624a8944f | |
parent | bf92b0cbf28ad58c908d7d151a717042473d985f (diff) |
pic16bit: Use 1 byte for qstr hash len and include header to fix build.
Signed-off-by: Damien George <damien@micropython.org>
-rw-r--r-- | ports/pic16bit/main.c | 1 | ||||
-rw-r--r-- | ports/pic16bit/mpconfigport.h | 1 |
2 files changed, 2 insertions, 0 deletions
diff --git a/ports/pic16bit/main.c b/ports/pic16bit/main.c index adb927607..e6481bafb 100644 --- a/ports/pic16bit/main.c +++ b/ports/pic16bit/main.c @@ -29,6 +29,7 @@ #include <string.h> #include <p33Fxxxx.h> +#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 52b1701ea..e97a46502 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) |