diff options
| author | Chris Wilson <chris@chris-wilson.co.uk> | 2010-07-13 10:36:34 +0100 |
|---|---|---|
| committer | Chris Wilson <chris@chris-wilson.co.uk> | 2010-07-13 10:36:34 +0100 |
| commit | 2267e5928bd90a6997970584462bd97df447e819 (patch) | |
| tree | c43941ef80af38ba9c9d08c5dc6b8aec64819f75 | |
| parent | 798c3a5fc6e3d44c9b94e6bc4e72385a10939f52 (diff) | |
Workaround a broken container_of define in list.h
| -rw-r--r-- | src/intel.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/intel.h b/src/intel.h index 26cb96a9..01291a0e 100644 --- a/src/intel.h +++ b/src/intel.h @@ -130,6 +130,9 @@ list_is_empty(struct list *head) } #endif +/* XXX work around a broken define in list.h currently [ickle 20100713] */ +#undef container_of + #ifndef container_of #define container_of(ptr, type, member) \ ((type *)((char *)(ptr) - (char *) &((type *)0)->member)) |
