summaryrefslogtreecommitdiffstats
path: root/src/boot/efi/pe.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/boot/efi/pe.c')
-rw-r--r--src/boot/efi/pe.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/boot/efi/pe.c b/src/boot/efi/pe.c
index e516417c07..9759d036b3 100644
--- a/src/boot/efi/pe.c
+++ b/src/boot/efi/pe.c
@@ -191,7 +191,7 @@ static uint32_t get_compatibility_entry_address(const DosFileHeader *dos, const
uint32_t entry_point;
} _packed_ LinuxPeCompat1;
- while (size >= sizeof(LinuxPeCompat1) && addr % __alignof__(LinuxPeCompat1) == 0) {
+ while (size >= sizeof(LinuxPeCompat1) && addr % alignof(LinuxPeCompat1) == 0) {
LinuxPeCompat1 *compat = (LinuxPeCompat1 *) ((uint8_t *) dos + addr);
if (compat->type == 0 || compat->size == 0 || compat->size > size)