From 0a31d5e7f57e4dfafa86034a74ec9e59c896086f Mon Sep 17 00:00:00 2001 From: Nico Huber Date: Wed, 16 Jun 2021 17:54:50 +0000 Subject: includes: Add include guards to `stddef.h` Change-Id: Ifae4f07abd75da9784967c2020eed2c3fe64afa0 Signed-off-by: Nico Huber Reviewed-on: https://review.coreboot.org/c/coreboot/+/55589 Reviewed-by: Angel Pons Tested-by: build bot (Jenkins) --- payloads/libpayload/include/stddef.h | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/payloads/libpayload/include/stddef.h b/payloads/libpayload/include/stddef.h index 725ff0bcb5..18c22f02a8 100644 --- a/payloads/libpayload/include/stddef.h +++ b/payloads/libpayload/include/stddef.h @@ -1,3 +1,5 @@ +#ifndef _STDDEF_H +#define _STDDEF_H #include @@ -35,3 +37,5 @@ typedef __SIZE_TYPE__ ssize_t; #define NSECS_PER_MSEC (NSECS_PER_SEC / MSECS_PER_SEC) #define NSECS_PER_USEC (NSECS_PER_SEC / USECS_PER_SEC) #define USECS_PER_MSEC (USECS_PER_SEC / MSECS_PER_SEC) + +#endif -- cgit v1.2.3