From 248b732f3c6ebb8e46d26db5933179a833868159 Mon Sep 17 00:00:00 2001 From: Silenio Quarti Date: Wed, 17 Oct 2012 11:46:55 -0400 Subject: compile on older versions of cairo - cairo_rectangle_int_t is missing --- .../org.eclipse.swt/Eclipse SWT PI/cairo/library/cairo_custom.h | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/bundles/org.eclipse.swt/Eclipse SWT PI/cairo/library/cairo_custom.h b/bundles/org.eclipse.swt/Eclipse SWT PI/cairo/library/cairo_custom.h index 4415a1f365..7faf5f29f5 100644 --- a/bundles/org.eclipse.swt/Eclipse SWT PI/cairo/library/cairo_custom.h +++ b/bundles/org.eclipse.swt/Eclipse SWT PI/cairo/library/cairo_custom.h @@ -56,3 +56,10 @@ #define cairo_region_contains_point_LIB LIB_CAIRO #define cairo_region_num_rectangles_LIB LIB_CAIRO #define cairo_region_get_rectangle_LIB LIB_CAIRO + +#if (CAIRO_VERSION < CAIRO_VERSION_ENCODE(1,10,0)) +typedef struct { + int x, y; + int width, height; +} cairo_rectangle_int_t; +#endif \ No newline at end of file -- cgit v1.2.3