diff options
author | Niall Douglas (s [underscore] sourceforge {at} nedprod [dot] com) <spamtrap@nedprod.com> | 2022-05-10 23:07:18 +0300 |
---|---|---|
committer | Niall Douglas (s [underscore] sourceforge {at} nedprod [dot] com) <spamtrap@nedprod.com> | 2022-05-10 23:07:18 +0300 |
commit | 8a3afb1295fb16ff79af05dac02bac97a5d9aa0d (patch) | |
tree | a14a4c0fcc0eaf85877abf822f21e2a41f4f0e66 | |
parent | d06bf6d6c2e1a23fb9eee3cb0c1056abc52de471 (diff) |
Fix duplicate symbol error on Windows for fs_handle::win_get_extended_attributes et al.
-rw-r--r-- | include/llfio/v2.0/fs_handle.hpp | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/include/llfio/v2.0/fs_handle.hpp b/include/llfio/v2.0/fs_handle.hpp index 09446854..d8e0c091 100644 --- a/include/llfio/v2.0/fs_handle.hpp +++ b/include/llfio/v2.0/fs_handle.hpp @@ -486,12 +486,13 @@ public: #ifdef _WIN32 //! Windows only: List all the NTFS extended attributes on a file. See the documentation for `set_extended_attribute()` before use. - result<span<std::pair<path_view_component, span<byte>>>> win_list_extended_attributes(span<byte> tofill) noexcept; + LLFIO_HEADERS_ONLY_MEMFUNC_SPEC result<span<std::pair<path_view_component, span<byte>>>> win_list_extended_attributes(span<byte> tofill) noexcept; //! Windows only: Get the values of NTFS extended attributes on a file. See the documentation for `set_extended_attribute()` before use. - result<span<std::pair<path_view_component, span<byte>>>> win_get_extended_attributes(span<byte> tofill, span<const path_view_component> names) noexcept; + LLFIO_HEADERS_ONLY_MEMFUNC_SPEC result<span<std::pair<path_view_component, span<byte>>>> + win_get_extended_attributes(span<byte> tofill, span<const path_view_component> names) noexcept; //! Windows only: Set the values of a NTFS extended attributes on a file. See the documentation for `set_extended_attribute()` before use. In particular, note //! the requirement that you can only _extend_ the attributes list i.e. you must always set whatever the list is already, with additional members. - result<void> win_set_extended_attributes(span<std::pair<const path_view_component, span<const byte>>> toset) noexcept; + LLFIO_HEADERS_ONLY_MEMFUNC_SPEC result<void> win_set_extended_attributes(span<std::pair<const path_view_component, span<const byte>>> toset) noexcept; #endif }; |