From 11f9a32de054d7b7142e6f0ad256a66a63391349 Mon Sep 17 00:00:00 2001 From: Jan Janssen Date: Mon, 23 May 2022 12:08:15 +0200 Subject: [PATCH] boot: Use stddef.h offsetof --- src/boot/efi/util.h | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) 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 -- 2.47.3