diff options
author | jan.nijtmans <nijtmans@users.sourceforge.net> | 2017-12-28 18:45:16 (GMT) |
---|---|---|
committer | jan.nijtmans <nijtmans@users.sourceforge.net> | 2017-12-28 18:45:16 (GMT) |
commit | 9a7ce78e965b9066530810b359b0b968667de251 (patch) | |
tree | f0d3acdceb02a96324acd8f5826b3ded1678fca9 /unix | |
parent | 82cd662f00327eb89fa2951c3f343112b6150e36 (diff) | |
download | tcl-9a7ce78e965b9066530810b359b0b968667de251.zip tcl-9a7ce78e965b9066530810b359b0b968667de251.tar.gz tcl-9a7ce78e965b9066530810b359b0b968667de251.tar.bz2 |
Make Tcl_WinTCharToUtf/Tcl_WinUtfToTChar work when TCL_UTF_MAX > 3, mainly when sizeof(Tcl_UniChar) != 2.
Diffstat (limited to 'unix')
-rw-r--r-- | unix/tclUnixPort.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/unix/tclUnixPort.h b/unix/tclUnixPort.h index ba56089..4819f10 100644 --- a/unix/tclUnixPort.h +++ b/unix/tclUnixPort.h @@ -87,8 +87,8 @@ typedef off_t Tcl_SeekOffset; typedef unsigned short WCHAR; __declspec(dllimport) extern __stdcall int GetModuleHandleExW(unsigned int, const char *, void *); __declspec(dllimport) extern __stdcall int GetModuleFileNameW(void *, const char *, int); - __declspec(dllimport) extern __stdcall int WideCharToMultiByte(int, int, const char *, int, - const char *, int, const char *, const char *); + __declspec(dllimport) extern __stdcall int WideCharToMultiByte(int, int, const void *, int, + char *, int, const char *, void *); __declspec(dllimport) extern __stdcall int MultiByteToWideChar(int, int, const char *, int, WCHAR *, int); __declspec(dllimport) extern __stdcall void OutputDebugStringW(const WCHAR *); |