summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/wayland-util.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/wayland-util.h b/src/wayland-util.h
index 8061368..944e7f0 100644
--- a/src/wayland-util.h
+++ b/src/wayland-util.h
@@ -119,7 +119,7 @@ void wl_list_insert_list(struct wl_list *list, struct wl_list *other);
#ifdef __GNUC__
#define __container_of(ptr, sample, member) \
- (typeof(sample))((char *)(ptr) - \
+ (__typeof__(sample))((char *)(ptr) - \
((char *)&(sample)->member - (char *)(sample)))
#else
#define __container_of(ptr, sample, member) \