--- ./src/cairo-quartz-surface.c.orig 2007-12-18 22:31:02.000000000 +0100 +++ ./src/cairo-quartz-surface.c 2007-12-19 10:57:57.000000000 +0100 @@ -103,8 +103,14 @@ CG_EXTERN CGImageRef CGBitmapContextCrea /* missing in 10.3.9 */ extern void CGContextClipToMask (CGContextRef, CGRect, CGImageRef) __attribute__((weak_import)); +#if MAC_OS_X_VERSION_MIN_REQUIRED > MAC_OS_X_VERSION_10_3 /* 10.5-only optimization */ extern void CGContextDrawTiledImage (CGContextRef, CGRect, CGImageRef) __attribute__((weak_import)); +#else +/* weak_import doesn't seem to want to work with Panther, miss out on the optimization for now */ +static void (*CGContextDrawTiledImage) (CGContextRef, CGRect, CGImageRef) = NULL; +#endif + /* * Utility functions