Fix EXTENDED_FIELDS macro to work with clang

This appears to work with clang versions at least since 3.0.
This commit is contained in:
Jeff Epler 2021-07-07 08:32:33 -05:00
parent 2997113e73
commit 44a3da55e6

View File

@ -640,7 +640,7 @@ struct _mp_obj_type_t {
// - 2 or more parents: pointer to a tuple object containing the parent types // - 2 or more parents: pointer to a tuple object containing the parent types
const void *parent; const void *parent;
#define EXTENDED_FIELDS(...) .ext[0] = { __VA_ARGS__ } #define EXTENDED_FIELDS(...) .ext = {{ __VA_ARGS__ }}
struct _mp_obj_type_ext ext[]; struct _mp_obj_type_ext ext[];
}; };