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:
parent
2997113e73
commit
44a3da55e6
2
py/obj.h
2
py/obj.h
@ -640,7 +640,7 @@ struct _mp_obj_type_t {
|
||||
// - 2 or more parents: pointer to a tuple object containing the parent types
|
||||
const void *parent;
|
||||
|
||||
#define EXTENDED_FIELDS(...) .ext[0] = { __VA_ARGS__ }
|
||||
#define EXTENDED_FIELDS(...) .ext = {{ __VA_ARGS__ }}
|
||||
struct _mp_obj_type_ext ext[];
|
||||
};
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user