From 0ed324754b1db561c8f05072ff9300f0be5e1a3a Mon Sep 17 00:00:00 2001 From: David Robillard Date: Sat, 9 Jan 2021 02:11:00 +0100 Subject: Fix SERD_DISABLE_DEPRECATED --- include/serd/serd.h | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'include/serd') diff --git a/include/serd/serd.h b/include/serd/serd.h index e5505410..9db354ac 100644 --- a/include/serd/serd.h +++ b/include/serd/serd.h @@ -361,6 +361,8 @@ typedef size_t (*SerdSink)(const void* SERD_NONNULL buf, static const SerdURI SERD_URI_NULL = {{NULL, 0}, {NULL, 0}, {NULL, 0}, {NULL, 0}, {NULL, 0}, {NULL, 0}}; +#ifndef SERD_DISABLE_DEPRECATED + /** Return the local path for `uri`, or NULL if `uri` is not a file URI. Note this (inappropriately named) function only removes the file scheme if @@ -373,6 +375,8 @@ SERD_DEPRECATED_BY("serd_file_uri_parse") const uint8_t* SERD_NULLABLE serd_uri_to_path(const uint8_t* SERD_NONNULL uri); +#endif + /** Get the unescaped path and hostname from a file URI. -- cgit v1.2.1