[cairo] _cairo_directfb_is_similar undeclared in cairo-directfb-surface.c

Chris Wilson chris at chris-wilson.co.uk
Tue Jun 19 13:02:49 PDT 2007


Hans-Jürgen Koch (hjk at linutronix.de) said: 
> I'm trying to compile cairo-1.4.8 with directfb enabled, and get this error:
> 
> cairo-directfb-surface.c:1575: error: '_cairo_directfb_is_similar' undeclared here (not in a function)
> 
> grep doesn't find that identifier in any *.c/*.h file. Can I simply set this pointer to NULL?

Sorry, small typo. Try this instead (I'll push as soon as I can resolve
git.cairographics.org):

diff --git a/src/cairo-directfb-surface.c b/src/cairo-directfb-surface.c
index 3dc3863..fa31b06 100644
--- a/src/cairo-directfb-surface.c
+++ b/src/cairo-directfb-surface.c
@@ -1572,7 +1572,7 @@ static cairo_surface_backend_t
cairo_directfb_surface_back
         NULL, /* show_glyphs */
 #endif
         NULL, /* snapshot */
-       _cairo_directfb_is_similar,
+       _cairo_directfb_surface_is_similar,
        NULL /* reset */
 };

--
Chris Wilson


More information about the cairo mailing list