diff options
author | Timothy Pearson <tpearson@raptorengineering.com> | 2019-11-29 19:25:14 -0600 |
---|---|---|
committer | Timothy Pearson <tpearson@raptorengineering.com> | 2019-11-29 19:25:14 -0600 |
commit | d7b5e291ffb166239c44682af2363080c72888aa (patch) | |
tree | 226ff4668e6e5fd9309d792181bb54e256032338 /include/qemu/compiler.h | |
parent | a8c40fa2d667e585382080db36ac44e216b37a1c (diff) | |
download | hqemu-d7b5e291ffb166239c44682af2363080c72888aa.zip hqemu-d7b5e291ffb166239c44682af2363080c72888aa.tar.gz |
Initial overlay of HQEMU 2.5.2 changes onto underlying 2.5.0 QEMU GIT tree2.5_overlay
Diffstat (limited to 'include/qemu/compiler.h')
-rw-r--r-- | include/qemu/compiler.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/include/qemu/compiler.h b/include/qemu/compiler.h index d22eb01..0abf0f8 100644 --- a/include/qemu/compiler.h +++ b/include/qemu/compiler.h @@ -60,7 +60,7 @@ #ifndef container_of #define container_of(ptr, type, member) ({ \ - const typeof(((type *) 0)->member) *__mptr = (ptr); \ + const __typeof__(((type *) 0)->member) *__mptr = (ptr); \ (type *) ((char *) __mptr - offsetof(type, member));}) #endif @@ -74,7 +74,7 @@ #define DO_UPCAST(type, field, dev) container_of(dev, type, field) #endif -#define typeof_field(type, field) typeof(((type *)0)->field) +#define typeof_field(type, field) __typeof__(((type *)0)->field) #define type_check(t1,t2) ((t1*)0 - (t2*)0) #ifndef always_inline |