]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
boot: Use stddef.h offsetof
authorJan Janssen <medhefgo@web.de>
Mon, 23 May 2022 10:08:15 +0000 (12:08 +0200)
committerJan Janssen <medhefgo@web.de>
Tue, 31 May 2022 12:18:43 +0000 (14:18 +0200)
src/boot/efi/util.h

index af204e9ab57cdec69969e1512237c8fc1b467507..aca6937ac713b28b972986acbf1fe081dd69ecf9 100644 (file)
@@ -3,11 +3,10 @@
 
 #include <efi.h>
 #include <efilib.h>
+#include <stddef.h>
 
 #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