diff options
author | Eric Engestrom <eric.engestrom@intel.com> | 2019-12-17 23:01:08 +0000 |
---|---|---|
committer | Dylan Baker <dylan@pnwbakers.com> | 2022-01-19 16:08:31 -0800 |
commit | 63d06ad3c30483577f194d1d1faafc4fe23aeef3 (patch) | |
tree | ae3d2fc6d951b9ce542ba9a0dac41384e4006975 /util_double_list.h | |
parent | fa80f49df8c3355c754a908722a422c610b6110a (diff) |
use standard `__typeof__()` instead of GNU extension `typeof()`
And switch to c_std=c99. This simplifies using libdrm as a meson
subproject for mesa.
v2: (dylan)
- switch to c99 as the standard
- Fix amdgpu security tests as well
Signed-off-by: Eric Engestrom <eric.engestrom@intel.com>
Signed-off-by: Dylan Baker <dylan@pnwbakers.com>
Reviewed-by: Simon Ser <contact@emersion.fr>
Reviewed-by: Emma Anholt <emma@anholt.net>
Diffstat (limited to 'util_double_list.h')
-rw-r--r-- | util_double_list.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/util_double_list.h b/util_double_list.h index 7e48b26c..9bdca137 100644 --- 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 *)&((typeof(sample))0)->member)) + - ((char *)&((__typeof__(sample))0)->member)) #endif #define LIST_FOR_EACH_ENTRY(pos, head, member) \ |