mirror of
https://github.com/koverstreet/bcachefs-tools.git
synced 2025-03-10 00:00:04 +03:00
add a fallback __DECLARE_FLEX_ARRAY
Signed-off-by: Kent Overstreet <kent.overstreet@linux.dev>
This commit is contained in:
parent
89b361f24a
commit
314ce7d963
@ -278,7 +278,10 @@ static inline void dump_stack(void) {}
|
|||||||
#define unsafe_memcpy(dst, src, bytes, justification) \
|
#define unsafe_memcpy(dst, src, bytes, justification) \
|
||||||
memcpy(dst, src, bytes)
|
memcpy(dst, src, bytes)
|
||||||
|
|
||||||
#define DECLARE_FLEX_ARRAY(TYPE, NAME) \
|
#ifdef __DECLARE_FLEX_ARRAY
|
||||||
__DECLARE_FLEX_ARRAY(TYPE, NAME)
|
#define DECLARE_FLEX_ARRAY(TYPE, NAME) __DECLARE_FLEX_ARRAY(TYPE, NAME)
|
||||||
|
#else
|
||||||
|
#define __DECLARE_FLEX_ARRAY(T, member) T member[0]
|
||||||
|
#endif
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
Loading…
Reference in New Issue
Block a user