Skip to content

Commit 1415a72

Browse files
committed
Add cwchar/wchar.h as stubs
1 parent 4ae6e32 commit 1415a72

File tree

2 files changed

+37
-0
lines changed

2 files changed

+37
-0
lines changed
Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
#pragma once
2+
#ifndef _GHLIBCPP_CWCHAR
3+
#define _GHLIBCPP_CWCHAR
4+
#include "wchar.h"
5+
6+
namespace std {
7+
using ::fgetwc;
8+
using ::fputwc;
9+
using ::wcstod;
10+
using ::wcstof;
11+
using ::wcstol;
12+
using ::wcstold;
13+
using ::wcstoll;
14+
using ::wcstoul;
15+
using ::wcstoull;
16+
} // namespace std
17+
18+
#endif // _GHLIBCPP_CWCHAR
Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
#ifndef _GHLIBCPP_WCHAR
2+
#define _GHLIBCPP_WCHAR
3+
4+
#include "stddef.h"
5+
6+
// Wide character I/O functions
7+
wchar_t fgetwc(void *stream);
8+
wchar_t fputwc(wchar_t wc, void *stream);
9+
10+
// Wide character string conversion functions
11+
long wcstol(const wchar_t *str, wchar_t **endptr, int base);
12+
long long wcstoll(const wchar_t *str, wchar_t **endptr, int base);
13+
unsigned long wcstoul(const wchar_t *str, wchar_t **endptr, int base);
14+
unsigned long long wcstoull(const wchar_t *str, wchar_t **endptr, int base);
15+
double wcstod(const wchar_t *str, wchar_t **endptr);
16+
float wcstof(const wchar_t *str, wchar_t **endptr);
17+
long double wcstold(const wchar_t *str, wchar_t **endptr);
18+
19+
#endif // _GHLIBCPP_WCHAR

0 commit comments

Comments
 (0)