mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-01-31 03:29:50 +00:00
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.
This commit is contained in:
parent
f1556c1660
commit
db1722c9cb
1 changed files with 11 additions and 0 deletions
|
@ -26,6 +26,17 @@
|
|||
#include <gst/base/gstbytereader.h>
|
||||
#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
|
||||
|
|
Loading…
Reference in a new issue