Commit db1722c9 authored by Sebastian Dröge's avatar Sebastian Dröge 🍵 Committed by Sebastian Dröge
Browse files

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.
parent f1556c16
Pipeline #10350 passed with stages
in 6 minutes and 51 seconds
......@@ -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
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment