diff options
author | jan.nijtmans <nijtmans@users.sourceforge.net> | 2012-04-04 18:52:18 (GMT) |
---|---|---|
committer | jan.nijtmans <nijtmans@users.sourceforge.net> | 2012-04-04 18:52:18 (GMT) |
commit | 97d3aadb931e982c80f7a926da148d3c095662af (patch) | |
tree | bb292f6696c91a2f35fa4e7da3bf863c26870aa5 /generic/tclIOUtil.c | |
parent | e5e97a567ea1743d72d105e5a1d1a4660cfa0111 (diff) | |
download | tcl-97d3aadb931e982c80f7a926da148d3c095662af.zip tcl-97d3aadb931e982c80f7a926da148d3c095662af.tar.gz tcl-97d3aadb931e982c80f7a926da148d3c095662af.tar.bz2 |
tclStubInit.c: move up #undef, so it is clear that this
macro is conflicting with another definition in this file.
Fix some other gcc warnings
Diffstat (limited to 'generic/tclIOUtil.c')
-rw-r--r-- | generic/tclIOUtil.c | 20 |
1 files changed, 0 insertions, 20 deletions
diff --git a/generic/tclIOUtil.c b/generic/tclIOUtil.c index da0eb46..1dfd4ba 100644 --- a/generic/tclIOUtil.c +++ b/generic/tclIOUtil.c @@ -6290,26 +6290,6 @@ SetFsPathFromAny(interp, objPtr) transPtr = Tcl_FSJoinToPath(objPtr,0,NULL); } -#if defined(__CYGWIN__) && defined(__WIN32__) - { - extern int cygwin_conv_to_win32_path - _ANSI_ARGS_((CONST char *, char *)); - char winbuf[MAX_PATH+1]; - - /* - * In the Cygwin world, call conv_to_win32_path in order to use the - * mount table to translate the file name into something Windows will - * understand. Take care when converting empty strings! - */ - name = Tcl_GetStringFromObj(transPtr, &len); - if (len > 0) { - cygwin_conv_to_win32_path(name, winbuf); - TclWinNoBackslash(winbuf); - Tcl_SetStringObj(transPtr, winbuf, -1); - } - } -#endif /* __CYGWIN__ && __WIN32__ */ - /* * Now we have a translated filename in 'transPtr'. This will have * forward slashes on Windows, and will not contain any ~user |