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:
parent
3c9f0c82e7
commit
8a790b2bb5
1 changed files with 11 additions and 1 deletions
12
ircd/base.cc
12
ircd/base.cc
|
@ -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)
|
||||
|
|
Loading…
Reference in a new issue