summaryrefslogtreecommitdiffstats
path: root/win
diff options
context:
space:
mode:
authorjan.nijtmans <nijtmans@users.sourceforge.net>2019-06-26 21:03:21 (GMT)
committerjan.nijtmans <nijtmans@users.sourceforge.net>2019-06-26 21:03:21 (GMT)
commit63502e3b41a71f30f2249e251395fcf7a4ef96c8 (patch)
tree1081a777ace9b461a50e0ec84294479790eb1dda /win
parenta0ce8846be2930e5f53b8a0f1776152cb93c338d (diff)
downloadtcl-63502e3b41a71f30f2249e251395fcf7a4ef96c8.zip
tcl-63502e3b41a71f30f2249e251395fcf7a4ef96c8.tar.gz
tcl-63502e3b41a71f30f2249e251395fcf7a4ef96c8.tar.bz2
Add compatibility macro's for Tcl_WinUtfToTChar/Tcl_WinTCharToUtf
Diffstat (limited to 'win')
-rw-r--r--win/tclWin32Dll.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/win/tclWin32Dll.c b/win/tclWin32Dll.c
index 4867c24..fc97cba 100644
--- a/win/tclWin32Dll.c
+++ b/win/tclWin32Dll.c
@@ -464,6 +464,7 @@ TclWinDriveLetterForVolMountPoint(
*/
#if (TCL_UTF_MAX <= 4) && !defined(TCL_NO_DEPRECATED)
+#undef Tcl_WinUtfToTChar
WCHAR *
Tcl_WinUtfToTChar(
const char *string, /* Source string in UTF-8. */
@@ -478,7 +479,7 @@ Tcl_WinUtfToTChar(
}
return Tcl_UtfToUtf16DString(string, len, dsPtr);
}
-
+#undef Tcl_WinTCharToUtf
char *
Tcl_WinTCharToUtf(
const WCHAR *string, /* Source string in Unicode. */