1
0
Fork 0
qemu/roms/skiboot/libmctp/container_of.h
Daniel Baumann ea34ddeea6
Adding upstream version 1:10.0.2+ds.
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
2025-06-22 14:27:05 +02:00

9 lines
222 B
C

#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