diff options
author | Nico Huber <nico.huber@secunet.com> | 2021-06-16 17:46:17 +0000 |
---|---|---|
committer | Werner Zeh <werner.zeh@siemens.com> | 2021-06-18 04:38:16 +0000 |
commit | 2eae410c5458b05c3f6ead9db55270f4813659aa (patch) | |
tree | 242a2eea70d9d6c54d81073f2bfe7f9888dd7194 /payloads/libpayload/curses | |
parent | 0a31d5e7f57e4dfafa86034a74ec9e59c896086f (diff) |
includes: Provide `wchar.h` with `wchar_t` and `wint_t`
Change-Id: Iacb0e4eaf3f0b6bf843f3bfda5bdfde0f7a98808
Signed-off-by: Nico Huber <nico.huber@secunet.com>
Reviewed-on: https://review.coreboot.org/c/coreboot/+/55590
Reviewed-by: Angel Pons <th3fanbus@gmail.com>
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Diffstat (limited to 'payloads/libpayload/curses')
-rw-r--r-- | payloads/libpayload/curses/curses.h | 10 |
1 files changed, 4 insertions, 6 deletions
diff --git a/payloads/libpayload/curses/curses.h b/payloads/libpayload/curses/curses.h index b802adb3f4..96fa9ac846 100644 --- a/payloads/libpayload/curses/curses.h +++ b/payloads/libpayload/curses/curses.h @@ -154,9 +154,9 @@ typedef unsigned long mmask_t; //// #define va_list int // FIXME #define _XOPEN_SOURCE_EXTENDED 1 // XXX -//// #ifdef _XOPEN_SOURCE_EXTENDED -//// #include <stddef.h> /* we want wchar_t */ -//// #endif /* _XOPEN_SOURCE_EXTENDED */ +#ifdef _XOPEN_SOURCE_EXTENDED +#include <stddef.h> /* we want wchar_t */ +#endif /* _XOPEN_SOURCE_EXTENDED */ /* XSI and SVr4 specify that curses implements 'bool'. However, C++ may also * implement it. If so, we must use the C++ compiler's type to avoid conflict @@ -350,9 +350,7 @@ typedef chtype attr_t; /* ...must be at least as wide as chtype */ #endif #if 1 -//// #include <wchar.h> /* ...to get mbstate_t, etc. */ -typedef unsigned long wchar_t; // XXX -typedef unsigned long wint_t; // XXX +#include <wchar.h> /* ...to get mbstate_t, etc. */ #endif #if 0 |