|
|
| version 1.1, 2004/06/21 02:01:33 | version 1.2, 2005/02/12 12:14:00 |
|---|---|
| Line 3 | Line 3 |
| extern "C" { | extern "C" { |
| #endif | #endif |
| #if defined(OSLANG_UTF8) | #if defined(UNICODE) && defined(OSLANG_UTF8) |
| UINT oemtext_sjis2oem(OEMCHAR *dst, UINT dcnt, const char *src, UINT scnt); | UINT oemtext_sjistooem(OEMCHAR *dst, UINT dcnt, const char *src, UINT scnt); |
| UINT oemtext_oem2sjis(char *dst, UINT dcnt, const OEMCHAR *src, UINT scnt); | UINT oemtext_oemtosjis(char *dst, UINT dcnt, const OEMCHAR *src, UINT scnt); |
| #elif defined(OSLANG_UCS2) | #elif defined(UNICODE) && defined(OSLANG_UCS2) |
| #define oemtext_sjis2oem(dst, dcnt, src, scnt) \ | #define oemtext_sjistooem(dst, dcnt, src, scnt) \ |
| MultiByteToWideChar(CP_ACP, MB_PRECOMPOSED, src, -1, dst, dcnt) | MultiByteToWideChar(CP_ACP, MB_PRECOMPOSED, src, -1, dst, dcnt) |
| #define oemtext_oem2sjis(dst, dcnt, src, scnt) \ | #define oemtext_oemtosjis(dst, dcnt, src, scnt) \ |
| WideCharToMultiByte(CP_ACP, 0, src, -1, dst, dcnt, NULL, NULL) | WideCharToMultiByte(CP_ACP, 0, src, -1, dst, dcnt, NULL, NULL) |
| #endif | #endif |