Gitiles
Code Review
Sign In
gerrit.openbmc.org
/
openbmc
/
libpldm
/
a5c3287e9b2b08ad810f5c9d4fc8805a0125ba73
/
.
/
src
/
transport
/
container-of.h
blob: facefe565ba84f3e6d5f120d5dac2a0aec95c427 [
file
] [
log
] [
blame
]
#ifndef
CONTAINER_OF_H
#define
CONTAINER_OF_H
#ifndef
container_of
#define
container_of
(
ptr
,
type
,
member
)
\
(
type
*)((
char
*)(
ptr
)-
offsetof
(
type
,
member
))
#endif
#endif