diff options
| author | Scott Shawcroft <scott@tannewt.org> | 2020-07-21 16:26:46 -0700 |
|---|---|---|
| committer | Scott Shawcroft <scott@tannewt.org> | 2020-07-22 16:26:46 -0700 |
| commit | 2bd6d056638f05185eb497ca2d039ebe9f386327 (patch) | |
| tree | a4e2711f774f400d034d67369212a914faedacea /py | |
| parent | d22283c9c44949242b16fdd4ba4b9d8c55a58add (diff) | |
Add externs. GCC10 complains about duplicate defines
Diffstat (limited to 'py')
| -rw-r--r-- | py/objstr.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/py/objstr.h b/py/objstr.h index 4b5e2054e..cddc6a83a 100644 --- a/py/objstr.h +++ b/py/objstr.h @@ -77,8 +77,8 @@ const byte *str_index_to_ptr(const mp_obj_type_t *type, const byte *self_data, s mp_obj_t index, bool is_slice); const byte *find_subbytes(const byte *haystack, size_t hlen, const byte *needle, size_t nlen, int direction); -const char nibble_to_hex_upper[16]; -const char nibble_to_hex_lower[16]; +extern const char nibble_to_hex_upper[16]; +extern const char nibble_to_hex_lower[16]; MP_DECLARE_CONST_FUN_OBJ_VAR_BETWEEN(str_encode_obj); MP_DECLARE_CONST_FUN_OBJ_VAR_BETWEEN(str_find_obj); |
