edk2/BaseTools/Source/C/Include
Mike Beaton 95c4d1e172 BaseTools: Update OFFSET_OF macro for use with UBSan
Without this change, the macro causes unwanted 'member access within
null pointer' warnings with UBSan.

This is the same macro definition as used in MdePkg/Include/Base.h,
except for removing the legacy `__GNUC__ >= 4` test. Ideally the
orginal macro should have this removed too, as should the several
other instances with similar tests around the codebase, but we leave
that for a separate commit.

Signed-off-by: Mike Beaton <mjsbeaton@gmail.com>
2025-12-03 12:29:51 +00:00
..
Common BaseTools: Update OFFSET_OF macro for use with UBSan 2025-12-03 12:29:51 +00:00
Guid BaseTools: Replace BSD License with BSD+Patent License 2019-04-09 09:10:20 -07:00
Protocol BaseTools: Remove UGA support 2025-07-08 15:42:03 +00:00