projects
/
platform
/
upstream
/
libdrm.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
list: fix an issue with android build using clang
[platform/upstream/libdrm.git]
/
util_double_list.h
diff --git
a/util_double_list.h
b/util_double_list.h
index
5d01f52
..
7e48b26
100644
(file)
--- a/
util_double_list.h
+++ b/
util_double_list.h
@@
-110,7
+110,7
@@
static inline void list_delinit(struct list_head *item)
#ifndef container_of
#define container_of(ptr, sample, member) \
(void *)((char *)(ptr) \
- - ((char *)&(
sample)->member - (char *)(sample)
))
+ - ((char *)&(
(typeof(sample))0)->member
))
#endif
#define LIST_FOR_EACH_ENTRY(pos, head, member) \