From 0ac81988c199df1a6652dc0ea72627122bf95c6c Mon Sep 17 00:00:00 2001 From: Chris Wilson Date: Tue, 17 Sep 2013 08:32:29 +0100 Subject: [PATCH] test/pixman-downscale: Open-code fmin() fmin() requires a bump to either _XOPEN_SOURCE_ >= 600 (POSIX 2004) or c99 - which is a needless dependency for a single simple routine. Signed-off-by: Chris Wilson --- test/pixman-downscale.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/pixman-downscale.c b/test/pixman-downscale.c index 621a5b96f..60e9618d6 100644 --- a/test/pixman-downscale.c +++ b/test/pixman-downscale.c @@ -51,7 +51,7 @@ draw (cairo_t *cr, int width, int height, cairo_filter_t filter) image = cairo_test_create_surface_from_png (ctx, png_filename); x_scale = width * 1.0 / cairo_image_surface_get_width (image); y_scale = height * 1.0 / cairo_image_surface_get_height (image); - scale = fmin(x_scale, y_scale); + scale = x_scale < y_scale ? x_scale : y_scale; cairo_save (cr); cairo_scale (cr, scale, scale);