From: Jan Janssen Date: Mon, 23 May 2022 10:08:15 +0000 (+0200) Subject: boot: Use stddef.h offsetof X-Git-Tag: v252-rc1~892^2~17 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=11f9a32de054d7b7142e6f0ad256a66a63391349;p=thirdparty%2Fsystemd.git boot: Use stddef.h offsetof --- diff --git a/src/boot/efi/util.h b/src/boot/efi/util.h index af204e9ab57..aca6937ac71 100644 --- a/src/boot/efi/util.h +++ b/src/boot/efi/util.h @@ -3,11 +3,10 @@ #include #include +#include #include "string-util-fundamental.h" -#define offsetof(type, member) __builtin_offsetof(type, member) - #define UINTN_MAX (~(UINTN)0) #define INTN_MAX ((INTN)(UINTN_MAX>>1)) #ifndef UINT32_MAX