diff options
| author | Kristian Høgsberg <krh@bitplanet.net> | 2011-12-22 15:23:54 -0500 |
|---|---|---|
| committer | Kristian Høgsberg <krh@bitplanet.net> | 2011-12-22 15:24:20 -0500 |
| commit | 5e078bfa5a64b1d3ebf78ff2cec0a8e7daaaf983 (patch) | |
| tree | 364fe3fd841dc5db330084c953989b8b4767519e /src | |
| parent | server: destroy the socket event source on display destroy (diff) | |
| download | wayland-5e078bfa5a64b1d3ebf78ff2cec0a8e7daaaf983.tar wayland-5e078bfa5a64b1d3ebf78ff2cec0a8e7daaaf983.tar.gz wayland-5e078bfa5a64b1d3ebf78ff2cec0a8e7daaaf983.tar.bz2 wayland-5e078bfa5a64b1d3ebf78ff2cec0a8e7daaaf983.tar.lz wayland-5e078bfa5a64b1d3ebf78ff2cec0a8e7daaaf983.tar.xz wayland-5e078bfa5a64b1d3ebf78ff2cec0a8e7daaaf983.tar.zst wayland-5e078bfa5a64b1d3ebf78ff2cec0a8e7daaaf983.zip | |
Use __typeof__ instead of typeof
Thiago Macieira compiles with -std=c++11.
Diffstat (limited to 'src')
| -rw-r--r-- | src/wayland-util.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/wayland-util.h b/src/wayland-util.h index 625a2d3..8061368 100644 --- a/src/wayland-util.h +++ b/src/wayland-util.h @@ -40,8 +40,8 @@ extern "C" { #define ALIGN(n, a) ( ((n) + ((a) - 1)) & ~((a) - 1) ) #define DIV_ROUNDUP(n, a) ( ((n) + ((a) - 1)) / (a) ) -#define container_of(ptr, type, member) ({ \ - const typeof( ((type *)0)->member ) *__mptr = (ptr); \ +#define container_of(ptr, type, member) ({ \ + const __typeof__( ((type *)0)->member ) *__mptr = (ptr); \ (type *)( (char *)__mptr - offsetof(type,member) );}) struct wl_message { |
