From: Michael Brown Date: Mon, 10 Apr 2017 15:11:50 +0000 (+0100) Subject: [libc] Add stdbool.h standard header X-Git-Tag: v1.20.1~221 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=ffb5fe4ced74712393e9659c8271292f0698020f;p=thirdparty%2Fipxe.git [libc] Add stdbool.h standard header Signed-off-by: Michael Brown --- diff --git a/src/include/curses.h b/src/include/curses.h index 1f6fe029b..cf8cc53c9 100644 --- a/src/include/curses.h +++ b/src/include/curses.h @@ -2,6 +2,7 @@ #define CURSES_H #include +#include #include #include @@ -25,7 +26,6 @@ FILE_LICENCE ( GPL2_OR_LATER_OR_UBDL ); #undef TRUE #define TRUE (1) -typedef int bool; typedef uint32_t chtype; typedef uint32_t attr_t; diff --git a/src/include/stdbool.h b/src/include/stdbool.h new file mode 100644 index 000000000..c49a7f192 --- /dev/null +++ b/src/include/stdbool.h @@ -0,0 +1,10 @@ +#ifndef _STDBOOL_H +#define _STDBOOL_H + +FILE_LICENCE ( GPL2_OR_LATER_OR_UBDL ); + +#define bool _Bool +#define true 1 +#define false 0 + +#endif /* _STDBOOL_H */