From: Sebastian Dröge Date: Mon, 26 Nov 2018 10:29:41 +0000 (+0100) Subject: video-anc: G_GNUC_CHECK_VERSION was added in GLib 2.42 X-Git-Tag: 1.16.2~322 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=db1722c9cbdcb9696ec7b4fe046bc78cd9b523d0;p=platform%2Fupstream%2Fgst-plugins-base.git video-anc: G_GNUC_CHECK_VERSION was added in GLib 2.42 Define our own version if compiling with older versions. We currently only require GLib 2.40. --- diff --git a/gst-libs/gst/video/video-anc.c b/gst-libs/gst/video/video-anc.c index baaaa5877..ec9635efc 100644 --- a/gst-libs/gst/video/video-anc.c +++ b/gst-libs/gst/video/video-anc.c @@ -26,6 +26,17 @@ #include #include "video-anc.h" +#if !GLIB_CHECK_VERSION(2, 42, 0) +#ifdef __GNUC__ +#define G_GNUC_CHECK_VERSION(major, minor) \ + ((__GNUC__ > (major)) || \ + ((__GNUC__ == (major)) && \ + (__GNUC_MINOR__ >= (minor)))) +#else +#define G_GNUC_CHECK_VERSION(major, minor) 0 +#endif +#endif + /** * SECTION:gstvideoanc * @title: GstVideo Ancillary