From 0d97c78f0288f84bed1869ab45fd19b2279cf25a Mon Sep 17 00:00:00 2001 From: John Cupitt Date: Tue, 3 Jan 2017 17:06:50 +0000 Subject: [PATCH] compat macro for early glibs --- libvips/include/vips/util.h | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/libvips/include/vips/util.h b/libvips/include/vips/util.h index fb8fb2a6..027acb11 100644 --- a/libvips/include/vips/util.h +++ b/libvips/include/vips/util.h @@ -135,6 +135,14 @@ G_STMT_START { \ } \ } G_STMT_END +/* The g_info() macro was added in 2.40. + */ +#ifndef g_info +/* Hopefully we have varargs macros. Maybe revisit this. + */ +#define g_info(...) \ + g_log( G_LOG_DOMAIN, G_LOG_LEVEL_INFO, __VA_ARGS__ ) +#endif /* Various integer range clips. Record over/under flows. */