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 | 35931d9a7cb0477591913a5a95bc958f75fbded8 (patch) | |
tree | bb292f6696c91a2f35fa4e7da3bf863c26870aa5 /win | |
parent | a3bd4adcec5224b9df954476297c4e3e1867440f (diff) | |
download | tcl-35931d9a7cb0477591913a5a95bc958f75fbded8.zip tcl-35931d9a7cb0477591913a5a95bc958f75fbded8.tar.gz tcl-35931d9a7cb0477591913a5a95bc958f75fbded8.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 'win')
-rw-r--r-- | win/tclWinFile.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/win/tclWinFile.c b/win/tclWinFile.c index 2c6150f..69d1838 100644 --- a/win/tclWinFile.c +++ b/win/tclWinFile.c @@ -223,7 +223,7 @@ WinLink(LinkSource, LinkTarget, linkAction) /* Make sure source file doesn't exist */ attr = (*tclWinProcs->getFileAttributesProc)(LinkSource); - if (attr != 0xffffffff) { + if (attr != -1) { Tcl_SetErrno(EEXIST); return -1; } @@ -237,7 +237,7 @@ WinLink(LinkSource, LinkTarget, linkAction) } /* Check the target */ attr = (*tclWinProcs->getFileAttributesProc)(LinkTarget); - if (attr == 0xffffffff) { + if (attr == -1) { /* The target doesn't exist */ TclWinConvertError(GetLastError()); return -1; @@ -301,7 +301,7 @@ WinReadLink(LinkSource) /* Make sure source file does exist */ attr = (*tclWinProcs->getFileAttributesProc)(LinkSource); - if (attr == 0xffffffff) { + if (attr == -1) { /* The source doesn't exist */ TclWinConvertError(GetLastError()); return NULL; |