diff options
author | jsorg71 <jsorg71> | 2007-09-21 07:22:29 +0000 |
---|---|---|
committer | jsorg71 <jsorg71> | 2007-09-21 07:22:29 +0000 |
commit | f0a2f53e300114575535de4f3057e022ac925ec8 (patch) | |
tree | 891a9cd710bf3080949bdc224389a6d7a96c1048 /common | |
parent | fdcb93e9772d62513f16e32cf793e8c68f86c6d0 (diff) | |
download | xrdp-proprietary-f0a2f53e300114575535de4f3057e022ac925ec8.tar.gz xrdp-proprietary-f0a2f53e300114575535de4f3057e022ac925ec8.zip |
unicode
Diffstat (limited to 'common')
-rw-r--r-- | common/arch.h | 1 | ||||
-rw-r--r-- | common/os_calls.c | 14 | ||||
-rw-r--r-- | common/os_calls.h | 4 |
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 |