1
0
Fork 0

Move PACKED define to util.h (#22074)

This commit is contained in:
Ryan 2023-09-20 16:33:54 +10:00 committed by GitHub
parent 7bfd775a5c
commit 2aacda3235
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
4 changed files with 7 additions and 42 deletions

View file

@ -46,3 +46,7 @@
*/
# define ARRAY_SIZE(array) (__builtin_choose_expr(IS_ARRAY((array)), sizeof((array)) / sizeof((array)[0]), (void)0))
#endif
#if !defined(PACKED)
# define PACKED __attribute__((__packed__))
#endif