Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
MacroModel committed Nov 12, 2024
1 parent fe65e6a commit 81b6028
Showing 1 changed file with 0 additions and 8 deletions.
8 changes: 0 additions & 8 deletions include/fast_io_hosted/filesystem/nt_at.h
Original file line number Diff line number Diff line change
Expand Up @@ -232,11 +232,7 @@ inline void nt_symlinkat_impl(char16_t const *oldpath_c_str, ::std::size_t oldpa
}
::std::size_t const cbReparseData{
#if __has_builtin(__builtin_offsetof)
#if defined(_MSC_VER) && !defined(__clang__)
__builtin_offsetof(SymbolicLinkReparseBuffer.PathBuffer, reparse_data_buffer)
#else
__builtin_offsetof(reparse_data_buffer, SymbolicLinkReparseBuffer.PathBuffer)
#endif
#else
offsetof(reparse_data_buffer, SymbolicLinkReparseBuffer.PathBuffer)
#endif
Expand All @@ -258,11 +254,7 @@ inline void nt_symlinkat_impl(char16_t const *oldpath_c_str, ::std::size_t oldpa
pReparseData->ReparseTag = 0xA000000CL; // IO_REPARSE_TAG_SYMLINK
pReparseData->ReparseDataLength = static_cast<::std::uint_least16_t>(cbReparseData -
#if __has_builtin(__builtin_offsetof)
#if defined(_MSC_VER) && !defined(__clang__)
__builtin_offsetof(GenericReparseBuffer, reparse_data_buffer)
#else
__builtin_offsetof(reparse_data_buffer, GenericReparseBuffer)
#endif
#else
offsetof(reparse_data_buffer, GenericReparseBuffer)
#endif
Expand Down

0 comments on commit 81b6028

Please sign in to comment.