mirror of
https://github.com/matrix-construct/construct
synced 2024-09-26 18:38:52 +02:00
ircd::buffer: Fix unconditional emission of inline variable in all units. (81b6c7b003
)
This commit is contained in:
parent
16be40e4e9
commit
edf0448243
2 changed files with 4 additions and 2 deletions
|
@ -53,7 +53,7 @@ namespace ircd::buffer
|
|||
using shared_mutable_buffer = shared_buffer<mutable_buffer>;
|
||||
|
||||
// Convenience null buffer
|
||||
extern const mutable_buffer null_buffer;
|
||||
[[clang::internal_linkage]] extern const mutable_buffer null_buffer;
|
||||
|
||||
// Single buffer iteration of contents
|
||||
template<class it> const it &begin(const buffer<it> &buffer);
|
||||
|
@ -351,12 +351,14 @@ ircd::buffer::begin(const buffer<it> &buffer)
|
|||
return get<0>(buffer);
|
||||
}
|
||||
|
||||
[[gnu::visibility("internal")]]
|
||||
inline decltype(ircd::buffer::null_buffer)
|
||||
ircd::buffer::null_buffer
|
||||
{
|
||||
nullptr, nullptr
|
||||
};
|
||||
|
||||
[[gnu::visibility("internal")]]
|
||||
inline decltype(ircd::buffers::null_buffers)
|
||||
ircd::buffers::null_buffers
|
||||
{
|
||||
|
|
|
@ -17,7 +17,7 @@ namespace ircd::buffer::buffers
|
|||
template<template<class> class I> using mutable_buffers = I<mutable_buffer>;
|
||||
|
||||
// Convenience null buffers
|
||||
extern const ilist<mutable_buffer> null_buffers;
|
||||
[[clang::internal_linkage]] extern const ilist<mutable_buffer> null_buffers;
|
||||
|
||||
// Iterable of buffers tools
|
||||
template<template<class> class I, class T> size_t size(const I<T> &buffers);
|
||||
|
|
Loading…
Reference in a new issue