mirror of
https://gitlab.freedesktop.org/wayland/wayland.git
synced 2026-03-29 07:58:19 -04:00
Move un-namespaced container_of into private header
This commit is contained in:
parent
bdd272f024
commit
7ec35d8e13
4 changed files with 6 additions and 4 deletions
|
|
@ -39,10 +39,6 @@ extern "C" {
|
|||
#define WL_EXPORT
|
||||
#endif
|
||||
|
||||
#define container_of(ptr, type, member) ({ \
|
||||
const __typeof__( ((type *)0)->member ) *__mptr = (ptr); \
|
||||
(type *)( (char *)__mptr - offsetof(type,member) );})
|
||||
|
||||
struct wl_message {
|
||||
const char *name;
|
||||
const char *signature;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue