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:
parent
bfa46e25e0
commit
f56d65266c
|
@ -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;
|
||||
|
|
|
@ -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
|
||||
|
||||
/*
|
||||
|
|
Loading…
Reference in New Issue