mirror of
https://gitlab.freedesktop.org/cairo/cairo.git
synced 2026-03-06 09:20:48 +01:00
[cairo] Protect typeof against -ansi
s/typeof/__typeof__/ to allow the [gcc-specific] macro to continue to work despite -ansi.
This commit is contained in:
parent
5f4f2ab01a
commit
e5752865ab
1 changed files with 1 additions and 1 deletions
|
|
@ -127,7 +127,7 @@ _cairo_win32_tmpfile (void);
|
|||
|
||||
#ifdef __GNUC__
|
||||
#define cairo_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)); \
|
||||
})
|
||||
#else
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue