Skip to content

Commit 84697e6

Browse files
committed
Populate wint_t from wctype.h, and use it in wchar.h.
1 parent 99fa73b commit 84697e6

File tree

3 files changed

+17
-2
lines changed

3 files changed

+17
-2
lines changed
Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
#ifndef _GHLIBCPP_CWCTYPE
2+
#define _GHLIBCPP_CWCTYPE
3+
4+
namespace std {
5+
using ::wint_t;
6+
} // namespace std
7+
8+
#endif // _GHLIBCPP_CWCTYPE

cpp/common/test/includes/standard-library/wchar.h

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,10 +2,11 @@
22
#define _GHLIBCPP_WCHAR
33

44
#include "stddef.h"
5+
#include "wctype.h"
56

67
// Wide character I/O functions
7-
wchar_t fgetwc(void *stream);
8-
wchar_t fputwc(wchar_t wc, void *stream);
8+
wint_t fgetwc(void *stream);
9+
wint_t fputwc(wchar_t wc, void *stream);
910

1011
// Wide character string conversion functions
1112
long wcstol(const wchar_t *str, wchar_t **endptr, int base);
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
#ifndef _GHLIBCPP_WCTYPE
2+
#define _GHLIBCPP_WCTYPE
3+
4+
typedef long wint_t;
5+
6+
#endif // _GHLIBCPP_WCTYPE

0 commit comments

Comments
 (0)