0
0
Fork 0
mirror of https://github.com/matrix-construct/construct synced 2024-11-29 02:02:38 +01:00

ircd: Fix namespace scope visibility for clang.

This commit is contained in:
Jason Volk 2020-02-11 12:19:55 -08:00
parent 3c9f0c82e7
commit 8a790b2bb5

View file

@ -17,6 +17,11 @@ namespace [[gnu::visibility("hidden")]] ircd
thread_local char base_conv_tmp_buf[64_KiB];
}
namespace [[gnu::visibility("default")]] ircd
{
// this stub needed for clang
}
ircd::string_view
ircd::b64urltob64(const mutable_buffer &out,
const string_view &in)
@ -78,7 +83,7 @@ ircd::b64tob58(const mutable_buffer &out,
return b58encode(out, b64decode(base_conv_tmp_buf, in));
}
namespace ircd
namespace [[gnu::visibility("hidden")]] ircd
{
const char _b64_pad_
{
@ -89,6 +94,11 @@ namespace ircd
static std::string _b64encode(const const_buffer &in, const _b64_encoder &);
}
namespace [[gnu::visibility("default")]] ircd
{
// this stub needed for clang
}
/// Allocate and return a string without padding from the encoding of in
std::string
ircd::b64encode_unpadded(const const_buffer &in)