summaryrefslogtreecommitdiffstats
path: root/common
diff options
context:
space:
mode:
authorjsorg71 <jsorg71>2007-09-21 07:22:29 +0000
committerjsorg71 <jsorg71>2007-09-21 07:22:29 +0000
commitf0a2f53e300114575535de4f3057e022ac925ec8 (patch)
tree891a9cd710bf3080949bdc224389a6d7a96c1048 /common
parentfdcb93e9772d62513f16e32cf793e8c68f86c6d0 (diff)
downloadxrdp-proprietary-f0a2f53e300114575535de4f3057e022ac925ec8.tar.gz
xrdp-proprietary-f0a2f53e300114575535de4f3057e022ac925ec8.zip
unicode
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