From 3c039b17296283392f821cd26c0ef584f0d8fa86 Mon Sep 17 00:00:00 2001 From: Michael Forney Date: Sun, 24 Feb 2019 16:10:46 -0800 Subject: Add __alignof__ definition by default --- config.def.h | 3 +++ 1 file changed, 3 insertions(+) diff --git a/config.def.h b/config.def.h index d11364d..80a2193 100644 --- a/config.def.h +++ b/config.def.h @@ -28,6 +28,9 @@ static char *preprocesscmd[] = { /* required for kernel headers */ "-D", "__signed__=signed", + + /* required for binutils */ + "-D", "__alignof__=_Alignof", }; static char *compilecmd[] = {"cc-qbe"}; static char *codegencmd[] = {"qbe"}; -- cgit v1.2.3