summaryrefslogtreecommitdiffstats
path: root/common
diff options
context:
space:
mode:
Diffstat (limited to 'common')
-rw-r--r--common/arch.h1
-rw-r--r--common/os_calls.c14
-rw-r--r--common/os_calls.h4
3 files changed, 19 insertions, 0 deletions
diff --git a/common/arch.h b/common/arch.h
index 2f3c51a2..6e62f11a 100644
--- a/common/arch.h
+++ b/common/arch.h
@@ -76,5 +76,6 @@ typedef int ti32;
typedef unsigned int tui32;
typedef signed int tsi32;
typedef long tbus;
+typedef int twchar;
#endif
diff --git a/common/os_calls.c b/common/os_calls.c
index bbbe5e73..65cc6206 100644
--- a/common/os_calls.c
+++ b/common/os_calls.c
@@ -1075,6 +1075,20 @@ g_pos(char* str, const char* to_find)
}
/*****************************************************************************/
+int APP_CC
+g_mbstowcs(twchar* dest, const char* src, int n)
+{
+ return mbstowcs(dest, src, n);
+}
+
+/*****************************************************************************/
+int APP_CC
+g_wcstombs(char* dest, const twchar* src, int n)
+{
+ return wcstombs(dest, src, n);
+}
+
+/*****************************************************************************/
long APP_CC
g_load_library(char* in)
{
diff --git a/common/os_calls.h b/common/os_calls.h
index 79c07093..4146c539 100644
--- a/common/os_calls.h
+++ b/common/os_calls.h
@@ -153,6 +153,10 @@ int APP_CC
g_atoi(char* str);
int APP_CC
g_pos(char* str, const char* to_find);
+int APP_CC
+g_mbstowcs(twchar* dest, const char* src, int n);
+int APP_CC
+g_wcstombs(char* dest, const twchar* src, int n);
long APP_CC
g_load_library(char* in);
int APP_CC