compat macro for early glibs

This commit is contained in:
John Cupitt 2017-01-03 17:06:50 +00:00
parent c31f4ec2d7
commit 0d97c78f02
1 changed files with 8 additions and 0 deletions

View File

@ -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.
*/