xref: /openbmc/libpldm/src/transport/container-of.h (revision 6af2a2936c40f4e1e275c39a88a41ba954a254bc)
1 #ifndef CONTAINER_OF_H
2 #define CONTAINER_OF_H
3 
4 #ifndef container_of
5 #define container_of(ptr, type, member)                                        \
6 	(type *)((char *)(ptr)-offsetof(type, member))
7 #endif
8 
9 #endif
10