summaryrefslogtreecommitdiff
path: root/include/wchar.h
diff options
context:
space:
mode:
authorWaldemar Brodkorb <wbx@openadk.org>2017-06-08 20:16:56 +0200
committerWaldemar Brodkorb <wbx@openadk.org>2017-06-08 20:16:56 +0200
commit2bce688bb90c27deb0c57b81b9fa0059ea04a271 (patch)
tree8f199c976c1148ef0b6ecfa3d4a5c4f01eed5870 /include/wchar.h
parent7c57ee8ebfa7104c6d19e588d08f7c4051317e63 (diff)
wchar.h: wchar_t must be defined
Fix compile issues with uchar.h users, f.e. systemd.
Diffstat (limited to 'include/wchar.h')
-rw-r--r--include/wchar.h14
1 files changed, 2 insertions, 12 deletions
diff --git a/include/wchar.h b/include/wchar.h
index 67f44b763..2e6ff77c0 100644
--- a/include/wchar.h
+++ b/include/wchar.h
@@ -76,23 +76,13 @@ __END_NAMESPACE_STD
#ifndef __mbstate_t_defined
# define __mbstate_t_defined 1
/* Conversion state information. */
-#if 1
+#define __need_wchar_t
+#include <stddef.h>
typedef struct
{
wchar_t __mask;
wchar_t __wc;
} __mbstate_t;
-#else
-typedef struct
-{
- int __count;
- union
- {
- wint_t __wch;
- char __wchb[4];
- } __value; /* Value so far. */
-} __mbstate_t;
-#endif
#endif
#undef __need_mbstate_t