From 81b60285574f0513d8042f7fec4e3e6a373c8485 Mon Sep 17 00:00:00 2001 From: MacroModel Date: Wed, 13 Nov 2024 02:04:45 +0800 Subject: [PATCH] fix --- include/fast_io_hosted/filesystem/nt_at.h | 8 -------- 1 file changed, 8 deletions(-) diff --git a/include/fast_io_hosted/filesystem/nt_at.h b/include/fast_io_hosted/filesystem/nt_at.h index 90406ac1..b76b8ac7 100644 --- a/include/fast_io_hosted/filesystem/nt_at.h +++ b/include/fast_io_hosted/filesystem/nt_at.h @@ -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 @@ -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