diff options
-rw-r--r-- | Userland/Libraries/LibC/sys/types.h | 2 | ||||
-rw-r--r-- | Userland/Libraries/LibC/wchar.cpp | 6 | ||||
-rw-r--r-- | Userland/Libraries/LibC/wchar.h | 3 |
3 files changed, 9 insertions, 2 deletions
diff --git a/Userland/Libraries/LibC/sys/types.h b/Userland/Libraries/LibC/sys/types.h index 0694f19a96..0eb5967987 100644 --- a/Userland/Libraries/LibC/sys/types.h +++ b/Userland/Libraries/LibC/sys/types.h @@ -32,8 +32,6 @@ typedef char* caddr_t; typedef int id_t; -typedef __WINT_TYPE__ wint_t; - typedef uint32_t ino_t; typedef int64_t off_t; diff --git a/Userland/Libraries/LibC/wchar.cpp b/Userland/Libraries/LibC/wchar.cpp index 56eeaa8fa9..487ad0b29a 100644 --- a/Userland/Libraries/LibC/wchar.cpp +++ b/Userland/Libraries/LibC/wchar.cpp @@ -153,4 +153,10 @@ long long wcstoll(const wchar_t*, wchar_t**, int) dbgln("FIXME: Implement wcstoll()"); TODO(); } + +wint_t btowc(int) +{ + dbgln("FIXME: Implement btowc()"); + TODO(); +} } diff --git a/Userland/Libraries/LibC/wchar.h b/Userland/Libraries/LibC/wchar.h index 6eeb8e42e6..551b8b2300 100644 --- a/Userland/Libraries/LibC/wchar.h +++ b/Userland/Libraries/LibC/wchar.h @@ -15,6 +15,8 @@ __BEGIN_DECLS # define WEOF (0xffffffffu) #endif +typedef __WINT_TYPE__ wint_t; + size_t wcslen(const wchar_t*); wchar_t* wcscpy(wchar_t*, const wchar_t*); wchar_t* wcsncpy(wchar_t*, const wchar_t*, size_t); @@ -27,5 +29,6 @@ wchar_t* wcsncat(wchar_t*, const wchar_t*, size_t); wchar_t* wcstok(wchar_t*, const wchar_t*, wchar_t**); long wcstol(const wchar_t*, wchar_t**, int); long long wcstoll(const wchar_t*, wchar_t**, int); +wint_t btowc(int c); __END_DECLS |