diff options
Diffstat (limited to 'include/compile_time_macros.h')
-rw-r--r-- | include/compile_time_macros.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/include/compile_time_macros.h b/include/compile_time_macros.h index f25ffd8407..b1e627d617 100644 --- a/include/compile_time_macros.h +++ b/include/compile_time_macros.h @@ -27,6 +27,8 @@ #define offsetof(type, member) __builtin_offsetof(type, member) #endif +#define member_size(type, member) sizeof(((type *)0)->member) + #define __visible __attribute__((externally_visible)) #endif /* __CROS_EC_COMPILE_TIME_MACROS_H */ |