Skip to content
This repository was archived by the owner on Jan 23, 2023. It is now read-only.
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 3 additions & 6 deletions src/md/datasource/datatargetreader.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -163,13 +163,10 @@ void DataTargetReader::Align(DWORD alignmentBytes)

void DataTargetReader::AlignBase()
{
#ifdef _MSC_VER
// Windows MSVC compiler aligns structs based on the largest field size
// Align structs based on the largest field size
// This is the default for MSVC compilers
// This is forced on other platforms by the DAC_ALIGNAS macro
Align(m_currentStructureAlign);
#else
// clang (on all platforms) aligns structs always on 4 byte boundaries
Align(4);
#endif
}

HRESULT DataTargetReader::GetRemotePointerSize(ULONG32* pPointerSize)
Expand Down