diff options
| author | Scott Shawcroft <scott.shawcroft@gmail.com> | 2017-02-25 12:19:33 +0100 |
|---|---|---|
| committer | Scott Shawcroft <scott.shawcroft@gmail.com> | 2017-02-26 01:00:33 +0100 |
| commit | 062fac1d43d42b35e0ecdaaec124c29b65db7c68 (patch) | |
| tree | ab2b653796caea6d368ae793e07e5382b0759bab /py/objnamedtuple.h | |
| parent | 3fd19c60ccd879ed676bae72d42b709b34eeaa23 (diff) | |
atmel-samd: Use link time optimization to reduce code size of builds which
share space with the file system.
"Express" builds with SPI flash crash the compiler for some reason so its
currently disabled for them.
Diffstat (limited to 'py/objnamedtuple.h')
| -rw-r--r-- | py/objnamedtuple.h | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/py/objnamedtuple.h b/py/objnamedtuple.h index f6621642a..89bc16311 100644 --- a/py/objnamedtuple.h +++ b/py/objnamedtuple.h @@ -25,6 +25,9 @@ * THE SOFTWARE. */ +#ifndef __MICROPY_INCLUDED_PY_OBJNAMEDTUPLE_H__ +#define __MICROPY_INCLUDED_PY_OBJNAMEDTUPLE_H__ + #include <string.h> #include "py/nlr.h" @@ -50,6 +53,8 @@ void namedtuple_attr(mp_obj_t self_in, qstr attr, mp_obj_t *dest); mp_obj_t namedtuple_make_new(const mp_obj_type_t *type_in, size_t n_args, size_t n_kw, const mp_obj_t *args); -const mp_rom_obj_tuple_t namedtuple_base_tuple; +const mp_rom_obj_tuple1_t namedtuple_base_tuple; #endif // MICROPY_PY_COLLECTIONS + +#endif // __MICROPY_INCLUDED_PY_OBJNAMEDTUPLE_H__ |
