summaryrefslogtreecommitdiff
path: root/payloads/libpayload
diff options
context:
space:
mode:
authorNico Huber <nico.h@gmx.de>2020-10-24 17:02:25 +0200
committerPatrick Georgi <pgeorgi@google.com>2020-10-26 06:57:06 +0000
commitbfa46e25e013af461b940ecd79d8b27bedecbc14 (patch)
treea2fd69bcc2e6e484aafd98435570dd86f11c223a /payloads/libpayload
parent3a7825983c506d5a521862bfa5700a87c525227d (diff)
downloadcoreboot-bfa46e25e013af461b940ecd79d8b27bedecbc14.tar.xz
libpayload: Add <stdbool.h>
Change-Id: I972c78c5da4136bc61e78fcbb52d7d162cc1b698 Signed-off-by: Nico Huber <nico.h@gmx.de> Reviewed-on: https://review.coreboot.org/c/coreboot/+/46721 Tested-by: build bot (Jenkins) <no-reply@coreboot.org> Reviewed-by: Angel Pons <th3fanbus@gmail.com>
Diffstat (limited to 'payloads/libpayload')
-rw-r--r--payloads/libpayload/include/stdbool.h10
1 files changed, 10 insertions, 0 deletions
diff --git a/payloads/libpayload/include/stdbool.h b/payloads/libpayload/include/stdbool.h
new file mode 100644
index 0000000000..33858d51f2
--- /dev/null
+++ b/payloads/libpayload/include/stdbool.h
@@ -0,0 +1,10 @@
+/* SPDX-License-Identifier: BSD-3-Clause */
+
+#ifndef __STDBOOL_H
+#define __STDBOOL_H
+
+#define bool _Bool
+#define false 0
+#define true (!false)
+
+#endif