Skip to content

Commit 899eb67

Browse files
medhefgobluca
authored andcommitted
boot: Use stddef.h offsetof
(cherry picked from commit 11f9a32)
1 parent 3613269 commit 899eb67

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

src/boot/efi/util.h

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,11 +3,10 @@
33

44
#include <efi.h>
55
#include <efilib.h>
6+
#include <stddef.h>
67

78
#include "string-util-fundamental.h"
89

9-
#define offsetof(type, member) __builtin_offsetof(type, member)
10-
1110
#define UINTN_MAX (~(UINTN)0)
1211
#define INTN_MAX ((INTN)(UINTN_MAX>>1))
1312
#ifndef UINT32_MAX

0 commit comments

Comments
 (0)