summaryrefslogtreecommitdiff
path: root/nonstd/stubs/wchar.h
diff options
context:
space:
mode:
authorJakob Kaivo <jkk@ung.org>2019-01-26 22:41:05 -0500
committerJakob Kaivo <jkk@ung.org>2019-01-26 22:41:05 -0500
commit8c6d4505329f94446084ca93eae10cd796d79a8d (patch)
treec00c6a990c81bd771ebcac72b38fd3ce2382c42e /nonstd/stubs/wchar.h
new framework for building sources after gitlab migration
Diffstat (limited to 'nonstd/stubs/wchar.h')
-rw-r--r--nonstd/stubs/wchar.h9
1 files changed, 9 insertions, 0 deletions
diff --git a/nonstd/stubs/wchar.h b/nonstd/stubs/wchar.h
new file mode 100644
index 00000000..0bdc95cb
--- /dev/null
+++ b/nonstd/stubs/wchar.h
@@ -0,0 +1,9 @@
+#include <stddef.h>
+#define WEOF (-1L)
+typedef int mbstate_t;
+typedef int wint_t;
+size_t mbrlen(const char * restrict, size_t, mbstate_t * restrict);
+size_t mbsrtowcs(wchar_t * restrict, const char * restrict, size_t, mbstate_t * restrict);
+size_t mbrtowc(wchar_t * restrict, const char * restrict, size_t, mbstate_t * restrict);
+size_t wcrtomb(char * restrict, wchar_t, mbstate_t * restrict);
+wint_t btowc(int);