[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:
Chris Wilson 2009-05-07 14:58:45 +01:00
parent 5f4f2ab01a
commit e5752865ab

View file

@ -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