libpayload/curses: Use <stdbool.h>

Change-Id: I35ef7c55fc6bcfb9c51a711a8e238f0970fd4ad4
Signed-off-by: Nico Huber <nico.h@gmx.de>
Reviewed-on: https://review.coreboot.org/c/coreboot/+/46722
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Reviewed-by: Paul Menzel <paulepanter@users.sourceforge.net>
Reviewed-by: Angel Pons <th3fanbus@gmail.com>
This commit is contained in:
Nico Huber 2020-10-24 17:39:59 +02:00 committed by Patrick Georgi
parent bfa46e25e0
commit f56d65266c
2 changed files with 2 additions and 9 deletions

View File

@ -41,6 +41,7 @@ PDCurses portable platform definitions list:
/*----------------------------------------------------------------------*/
#include <stdarg.h>
#include <stdbool.h>
#include <stddef.h>
#include <stdio.h> /* Required by X/Open usage below */
@ -48,12 +49,6 @@ PDCurses portable platform definitions list:
# include <wchar.h>
#endif
#if defined(__cplusplus) || defined(__cplusplus__) || defined(__CPLUSPLUS)
extern "C"
{
# define bool _bool
#endif
/*----------------------------------------------------------------------
*
* PDCurses Manifest Constants
@ -82,8 +77,6 @@ extern "C"
*
*/
typedef unsigned char bool; /* PDCurses Boolean type */
#ifdef CHTYPE_LONG
# if _LP64
typedef unsigned int chtype;

View File

@ -87,7 +87,7 @@
* User-definable tweak to disable the include of <stdbool.h>.
*/
#ifndef NCURSES_ENABLE_STDBOOL_H
#define NCURSES_ENABLE_STDBOOL_H 0 //// XXX
#define NCURSES_ENABLE_STDBOOL_H 1
#endif
/*