From 7bd4715a7016b3228df877d625cf26a3694cfebe Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jonathan=20Neusch=C3=A4fer?= Date: Mon, 30 Oct 2017 19:28:52 +0100 Subject: commonlib/helpers.h: Include stddef.h MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The definition of offsetof() uses size_t, which is declared in stddef.h, according to POSIX. Include stddef.h directly to avoid relying on implicit inclusion. Change-Id: I221be02c332de55c9fcf7d86673709ed43dd5c3c Signed-off-by: Jonathan Neuschäfer Reviewed-on: https://review.coreboot.org/22230 Reviewed-by: Aaron Durbin Tested-by: build bot (Jenkins) Reviewed-by: Maximilian Schander Reviewed-by: Paul Menzel --- src/commonlib/include/commonlib/helpers.h | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'src/commonlib/include') diff --git a/src/commonlib/include/commonlib/helpers.h b/src/commonlib/include/commonlib/helpers.h index 0a796ba85b..f2acedca0f 100644 --- a/src/commonlib/include/commonlib/helpers.h +++ b/src/commonlib/include/commonlib/helpers.h @@ -15,6 +15,10 @@ #define COMMONLIB_HELPERS_H /* This file is for helpers for both coreboot firmware and its utilities. */ +#ifndef __ASSEMBLER__ +#include +#endif + #ifndef ARRAY_SIZE #define ARRAY_SIZE(a) (sizeof(a) / sizeof((a)[0])) #endif -- cgit v1.2.3