[coreboot-gerrit] Change in coreboot[master]: commonlib/helpers.h: Include stdlib.h

Jonathan Neuschäfer (Code Review) gerrit at coreboot.org
Mon Oct 30 19:36:43 CET 2017


Jonathan Neuschäfer has uploaded this change for review. ( https://review.coreboot.org/22230


Change subject: commonlib/helpers.h: Include stdlib.h
......................................................................

commonlib/helpers.h: Include stdlib.h

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 <j.neuschaefer at gmx.net>
---
M src/commonlib/include/commonlib/helpers.h
1 file changed, 2 insertions(+), 0 deletions(-)



  git pull ssh://review.coreboot.org:29418/coreboot refs/changes/30/22230/1

diff --git a/src/commonlib/include/commonlib/helpers.h b/src/commonlib/include/commonlib/helpers.h
index 0a796ba..77e9f1f 100644
--- a/src/commonlib/include/commonlib/helpers.h
+++ b/src/commonlib/include/commonlib/helpers.h
@@ -15,6 +15,8 @@
 #define COMMONLIB_HELPERS_H
 /* This file is for helpers for both coreboot firmware and its utilities. */
 
+#include <stddef.h>
+
 #ifndef ARRAY_SIZE
 #define ARRAY_SIZE(a) (sizeof(a) / sizeof((a)[0]))
 #endif

-- 
To view, visit https://review.coreboot.org/22230
To unsubscribe, visit https://review.coreboot.org/settings

Gerrit-Project: coreboot
Gerrit-Branch: master
Gerrit-MessageType: newchange
Gerrit-Change-Id: I221be02c332de55c9fcf7d86673709ed43dd5c3c
Gerrit-Change-Number: 22230
Gerrit-PatchSet: 1
Gerrit-Owner: Jonathan Neuschäfer <j.neuschaefer at gmx.net>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.coreboot.org/pipermail/coreboot-gerrit/attachments/20171030/8c0fc621/attachment.html>


More information about the coreboot-gerrit mailing list