diff options
-rw-r--r-- | payloads/libpayload/curses/PDCurses/curses.h | 9 | ||||
-rw-r--r-- | payloads/libpayload/curses/curses.h | 2 |
2 files changed, 2 insertions, 9 deletions
diff --git a/payloads/libpayload/curses/PDCurses/curses.h b/payloads/libpayload/curses/PDCurses/curses.h index 5f651fef44..45245ae0b1 100644 --- a/payloads/libpayload/curses/PDCurses/curses.h +++ b/payloads/libpayload/curses/PDCurses/curses.h @@ -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; diff --git a/payloads/libpayload/curses/curses.h b/payloads/libpayload/curses/curses.h index 1699250de6..b802adb3f4 100644 --- a/payloads/libpayload/curses/curses.h +++ b/payloads/libpayload/curses/curses.h @@ -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 /* |