From 4d9dd26818547e252768d62bf3e319c6f1ca7b7f Mon Sep 17 00:00:00 2001 From: Dave Hylands Date: Mon, 14 Jul 2014 22:19:27 -0700 Subject: Fix teensy to build on latest tree. Put #include of mpconfig.h before misc.h Replace uses of ARRAY_SIZE with MP_ARRAY_SIZE --- teensy/modpyb.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'teensy/modpyb.c') diff --git a/teensy/modpyb.c b/teensy/modpyb.c index 435b198d0..64b9bda2d 100644 --- a/teensy/modpyb.c +++ b/teensy/modpyb.c @@ -29,8 +29,8 @@ #include #include "Arduino.h" -#include "misc.h" #include "mpconfig.h" +#include "misc.h" #include "teensy_hal.h" @@ -328,8 +328,8 @@ STATIC const mp_obj_dict_t pyb_module_globals = { .map = { .all_keys_are_qstrs = 1, .table_is_fixed_array = 1, - .used = ARRAY_SIZE(pyb_module_globals_table), - .alloc = ARRAY_SIZE(pyb_module_globals_table), + .used = MP_ARRAY_SIZE(pyb_module_globals_table), + .alloc = MP_ARRAY_SIZE(pyb_module_globals_table), .table = (mp_map_elem_t*)pyb_module_globals_table, }, }; -- cgit v1.2.3