mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-26 19:51:11 +00:00
soup-stub: Gate G_URI_FLAGS_SCHEME_NORMALIZE behind glib version check
Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/1138>
This commit is contained in:
parent
4c046c9e8a
commit
8b553d5b32
1 changed files with 6 additions and 0 deletions
|
@ -162,10 +162,16 @@ typedef void (*SoupLoggerPrinter)(SoupLogger *logger,
|
||||||
const char *data,
|
const char *data,
|
||||||
gpointer user_data);
|
gpointer user_data);
|
||||||
|
|
||||||
|
#if GLIB_CHECK_VERSION(2, 68, 0)
|
||||||
#define SOUP_HTTP_URI_FLAGS \
|
#define SOUP_HTTP_URI_FLAGS \
|
||||||
(G_URI_FLAGS_HAS_PASSWORD | G_URI_FLAGS_ENCODED_PATH | \
|
(G_URI_FLAGS_HAS_PASSWORD | G_URI_FLAGS_ENCODED_PATH | \
|
||||||
G_URI_FLAGS_ENCODED_QUERY | G_URI_FLAGS_ENCODED_FRAGMENT | \
|
G_URI_FLAGS_ENCODED_QUERY | G_URI_FLAGS_ENCODED_FRAGMENT | \
|
||||||
G_URI_FLAGS_SCHEME_NORMALIZE)
|
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,
|
typedef void (*SoupMessageHeadersForeachFunc)(const char *name,
|
||||||
const char *value,
|
const char *value,
|
||||||
|
|
Loading…
Reference in a new issue