diff options
| author | Alex James <theracermaster@gmail.com> | 2019-11-28 08:56:45 +0300 |
|---|---|---|
| committer | mergify[bot] <37929162+mergify[bot]@users.noreply.github.com> | 2019-12-20 08:54:06 +0300 |
| commit | 796b380ca7d263ca504b82fe5317a78d3546d537 (patch) | |
| tree | f9764a2d9aebdd3edc774f82c6984a8470f2e597 /BaseTools/Source/Python/CommonDataClass/CommonClass.py | |
| parent | 665afccc52e1a02ee329147e02f04b8e9cf1d571 (diff) | |
| download | edk2-796b380ca7d263ca504b82fe5317a78d3546d537.tar.xz | |
MdePkg: Use __builtin_offset with CLANGPDB toolchain
BZ: https://bugzilla.tianocore.org/show_bug.cgi?id=2393
CLANGPDB does not define __GNUC__, but it does define __clang__. Check
for the __clang__ preprocessor definition to use __builtin_offsetof to
implement the OFFSET_OF macro.
Cc: Michael D Kinney <michael.d.kinney@intel.com>
Cc: Liming Gao <liming.gao@intel.com>
Signed-off-by: Alex James <theracermaster@gmail.com>
Reviewed-by: Liming Gao <liming.gao@intel.com>
Diffstat (limited to 'BaseTools/Source/Python/CommonDataClass/CommonClass.py')
0 files changed, 0 insertions, 0 deletions
