diff options
author | jan.nijtmans <nijtmans@users.sourceforge.net> | 2021-02-23 07:42:14 (GMT) |
---|---|---|
committer | jan.nijtmans <nijtmans@users.sourceforge.net> | 2021-02-23 07:42:14 (GMT) |
commit | 92eff9a92206e2292cbd5dbc8e2320ce874ea7fb (patch) | |
tree | 15ef703a6d84d5fca9cca7fb367e8a0c0977e503 /generic/tclIOUtil.c | |
parent | 8512e037c283c963896ccc29a5118e64a9b5e830 (diff) | |
parent | eb9f949b2cfdc79e6a450a1e4f6e3580ccde4d9f (diff) | |
download | tcl-92eff9a92206e2292cbd5dbc8e2320ce874ea7fb.zip tcl-92eff9a92206e2292cbd5dbc8e2320ce874ea7fb.tar.gz tcl-92eff9a92206e2292cbd5dbc8e2320ce874ea7fb.tar.bz2 |
Merge 8.7
Diffstat (limited to 'generic/tclIOUtil.c')
-rw-r--r-- | generic/tclIOUtil.c | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/generic/tclIOUtil.c b/generic/tclIOUtil.c index 36d8dbc..df94367 100644 --- a/generic/tclIOUtil.c +++ b/generic/tclIOUtil.c @@ -3078,6 +3078,13 @@ Tcl_FSLoadFile( * */ +#ifdef _WIN32 +#define getenv(x) _wgetenv(L##x) +#define atoi(x) _wtoi(x) +#else +#define WCHAR char +#endif + static int skipUnlink( Tcl_Obj *shlibFile) @@ -3099,7 +3106,7 @@ skipUnlink( (void)shlibFile; return 1; #else - char *skipstr = getenv("TCL_TEMPLOAD_NO_UNLINK"); + WCHAR *skipstr = getenv("TCL_TEMPLOAD_NO_UNLINK"); if (skipstr && (skipstr[0] != '\0')) { return atoi(skipstr); |