mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-01-11 01:45:33 +00:00
webrtc: fix build with older libnice versions
1) check for right macro name when checking for NICE_VERSION_CHECK 2) if libnice version is 0.1.18.1 this should not satisfy a NICE_VERSION_CHECK(0,1,19). Fixes build with libnice 0.1.18.1 subproject checkout. Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/2499>
This commit is contained in:
parent
7f2fb3b783
commit
962dc37d4f
1 changed files with 3 additions and 5 deletions
|
@ -27,14 +27,12 @@
|
|||
#include "icestream.h"
|
||||
#include "nicetransport.h"
|
||||
|
||||
#ifndef NICE_CHECH_VERSION
|
||||
#define NICE_CHECK_VERSION(major, minor, micro) \
|
||||
#ifndef NICE_CHECK_VERSION
|
||||
#define NICE_CHECK_VERSION(major,minor,micro) \
|
||||
(NICE_VERSION_MAJOR > (major) || \
|
||||
(NICE_VERSION_MAJOR == (major) && NICE_VERSION_MINOR > (minor)) || \
|
||||
(NICE_VERSION_MAJOR == (major) && NICE_VERSION_MINOR == (minor) && \
|
||||
NICE_VERSION_MICRO >= (micro)) || \
|
||||
(NICE_VERSION_MAJOR == (major) && NICE_VERSION_MINOR == (minor) && \
|
||||
NICE_VERSION_MICRO + 1 == (micro) && NICE_VERSION_NANO > 0))
|
||||
NICE_VERSION_MICRO >= (micro)))
|
||||
#endif
|
||||
|
||||
/* XXX:
|
||||
|
|
Loading…
Reference in a new issue