From e5752865ab0ebefec313ab9a6f90451ef2d7af95 Mon Sep 17 00:00:00 2001 From: Chris Wilson Date: Thu, 7 May 2009 14:58:45 +0100 Subject: [PATCH] [cairo] Protect typeof against -ansi s/typeof/__typeof__/ to allow the [gcc-specific] macro to continue to work despite -ansi. --- src/cairoint.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/cairoint.h b/src/cairoint.h index 0aa9ebf12..29b8ea68a 100644 --- a/src/cairoint.h +++ b/src/cairoint.h @@ -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