From 8b553d5b325b8a896da2428c9db55cc06326857b Mon Sep 17 00:00:00 2001 From: Philippe Normand Date: Wed, 13 Oct 2021 14:42:15 +0100 Subject: [PATCH] soup-stub: Gate G_URI_FLAGS_SCHEME_NORMALIZE behind glib version check Part-of: --- subprojects/gst-plugins-good/ext/soup/stub/soup.h | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/subprojects/gst-plugins-good/ext/soup/stub/soup.h b/subprojects/gst-plugins-good/ext/soup/stub/soup.h index 4de6527..56ddd6a 100644 --- a/subprojects/gst-plugins-good/ext/soup/stub/soup.h +++ b/subprojects/gst-plugins-good/ext/soup/stub/soup.h @@ -162,10 +162,16 @@ typedef void (*SoupLoggerPrinter)(SoupLogger *logger, const char *data, gpointer user_data); +#if GLIB_CHECK_VERSION(2, 68, 0) #define SOUP_HTTP_URI_FLAGS \ (G_URI_FLAGS_HAS_PASSWORD | G_URI_FLAGS_ENCODED_PATH | \ G_URI_FLAGS_ENCODED_QUERY | G_URI_FLAGS_ENCODED_FRAGMENT | \ G_URI_FLAGS_SCHEME_NORMALIZE) +#else +#define SOUP_HTTP_URI_FLAGS \ + (G_URI_FLAGS_HAS_PASSWORD | G_URI_FLAGS_ENCODED_PATH | \ + G_URI_FLAGS_ENCODED_QUERY | G_URI_FLAGS_ENCODED_FRAGMENT) +#endif typedef void (*SoupMessageHeadersForeachFunc)(const char *name, const char *value, -- 2.7.4