diff options
author | Alex James <theracermaster@gmail.com> | 2019-10-22 18:32:22 -0500 |
---|---|---|
committer | Patrick Georgi <pgeorgi@google.com> | 2019-11-05 15:00:44 +0000 |
commit | 8119841ec0da8ab088ed23961d3a3e4b25551f18 (patch) | |
tree | 5095b63f286837e73ffe35a5473f5941bb2088fa /src/ec/lenovo | |
parent | ddcfcb8ebc64d71717407607323fd18e29fa651e (diff) |
commonlib: Use __builtin_offsetof with supported compilers
Use __builtin_offsetof (which is treated as a constant expression) with
Clang & GCC. This also allows check_member to work with Clang 9.
Signed-off-by: Alex James <theracermaster@gmail.com>
Change-Id: I8b5cb4110c13ee42114ecf65932d7f1e5636210e
Reviewed-on: https://review.coreboot.org/c/coreboot/+/36249
Reviewed-by: Aaron Durbin <adurbin@chromium.org>
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Diffstat (limited to 'src/ec/lenovo')
0 files changed, 0 insertions, 0 deletions