projects
/
systemd
/
.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
a52765a
)
boot: Use stddef.h offsetof
author
Jan Janssen
<medhefgo@web.de>
Mon, 23 May 2022 10:08:15 +0000
(12:08 +0200)
committer
Jan Janssen
<medhefgo@web.de>
Tue, 31 May 2022 12:18:43 +0000
(14:18 +0200)
src/boot/efi/util.h
patch
|
blob
|
history
diff --git
a/src/boot/efi/util.h
b/src/boot/efi/util.h
index af204e9ab57cdec69969e1512237c8fc1b467507..aca6937ac713b28b972986acbf1fe081dd69ecf9 100644
(file)
--- a/
src/boot/efi/util.h
+++ b/
src/boot/efi/util.h
@@
-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