]> git.ipfire.org Git - thirdparty/systemd.git/commit
efi: rework OFFSETOF() based on __builtin_offsetof()
authorLennart Poettering <lennart@poettering.net>
Thu, 18 Oct 2018 15:10:42 +0000 (17:10 +0200)
committerLennart Poettering <lennart@poettering.net>
Thu, 18 Oct 2018 17:01:54 +0000 (19:01 +0200)
commit0fef9583615435d41a7724b0c49f530433b4c572
treedbb23fb6c2b777a44996dad8a398120683264e52
parent849d653a4e4f7d257507dad9fb82cda88a732b78
efi: rework OFFSETOF() based on __builtin_offsetof()

Since both LLVM and gcc supported this for a long time, we are not
adding a fallback compat kludge. And even if there's some relevant
compiler that doesn't know this concept, it'll fail with a compiler
error, and we'll fix it then.

As suggested by @keszybz:

https://github.com/systemd/systemd/pull/10174#discussion_r226266540
src/boot/efi/util.h