Gitiles
Code Review
Sign In
gerrit.openbmc.org
/
openbmc
/
libmctp
/
4df106db7766a56d6db67556b0072295c2d5659d
/
.
/
container_of.h
blob: 2abb3321614d027ef0342ef8de0e6cb81bff7cb8 [
file
] [
log
] [
blame
]
#ifndef
_CONTAINER_OF_H
#define
_CONTAINER_OF_H
#ifndef
container_of
#define
container_of
(
ptr
,
type
,
member
)
\
(
type
*)((
char
*)(
ptr
)
-
(
char
*)&((
type
*)
0
)->
member
)
#endif
#endif