From 92a43192f81c7bb36f122112c632c6b42eb3a311 Mon Sep 17 00:00:00 2001 From: Scott Shawcroft Date: Tue, 31 Aug 2021 13:38:37 -0700 Subject: [PATCH] Fix mpy-cross by providing default --- py/qstr.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/py/qstr.c b/py/qstr.c index 9ea7ab83db..d7b05930f7 100644 --- a/py/qstr.c +++ b/py/qstr.c @@ -76,8 +76,10 @@ mp_uint_t qstr_compute_hash(const byte *data, size_t len) { } return hash; } - -#if CIRCUITPY_PRECOMPUTE_QSTR_ATTR +#ifndef CIRCUITPY_PRECOMPUTE_QSTR_ATTR +#define CIRCUITPY_PRECOMPUTE_QSTR_ATTR (1) +#endif +#if CIRCUITPY_PRECOMPUTE_QSTR_ATTR == 1 const qstr_attr_t mp_qstr_const_attr[MP_QSTRnumber_of] = { #ifndef NO_QSTR #define QDEF(id, hash, len, str) { hash, len },