summaryrefslogtreecommitdiffstats
path: root/win/tclWinChan.c
diff options
context:
space:
mode:
authormdejong <mdejong>2003-01-14 02:06:10 (GMT)
committermdejong <mdejong>2003-01-14 02:06:10 (GMT)
commit34dbae7d6c29485684a2de0432b01702ce074d54 (patch)
tree023efb988c8483959418c28474b1c576859a43d1 /win/tclWinChan.c
parentbcfd8c29092de21e66b7a7ca7a9a682b07514c54 (diff)
downloadtcl-34dbae7d6c29485684a2de0432b01702ce074d54.zip
tcl-34dbae7d6c29485684a2de0432b01702ce074d54.tar.gz
tcl-34dbae7d6c29485684a2de0432b01702ce074d54.tar.bz2
Fix mingw build problems and compiler warnings.
* generic/tcl.h: Add if defined(__MINGW32__) check to code that sets the TCL_WIDE_INT_TYPE and TCL_LL_MODIFIER. * generic/tclClock.c (FormatClock): Don't define savedTimeZone and savedTZEnv if we are not going to use them. * generic/tclEnv.c: Add cast to avoid warning. * win/tclWinChan.c: Use DWORD instead of int to avoid compiler warning. * win/tclWinThrd.c: Only define allocLock, allocLockPtr, and dataKey when TCL_THREADS is defined. This avoid a compiler warning about unused variables.
Diffstat (limited to 'win/tclWinChan.c')
-rw-r--r--win/tclWinChan.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/win/tclWinChan.c b/win/tclWinChan.c
index e6b61b3..3799ee5 100644
--- a/win/tclWinChan.c
+++ b/win/tclWinChan.c
@@ -9,7 +9,7 @@
* See the file "license.terms" for information on usage and redistribution
* of this file, and for a DISCLAIMER OF ALL WARRANTIES.
*
- * RCS: @(#) $Id: tclWinChan.c,v 1.26 2002/11/27 22:57:18 davygrvy Exp $
+ * RCS: @(#) $Id: tclWinChan.c,v 1.27 2003/01/14 02:06:11 mdejong Exp $
*/
#include "tclWinInt.h"
@@ -467,7 +467,7 @@ FileSeekProc(instanceData, offset, mode, errorCodePtr)
oldPos = SetFilePointer(infoPtr->handle, (LONG)0, &oldPosHigh,
FILE_CURRENT);
if (oldPos == INVALID_SET_FILE_POINTER) {
- int winError = GetLastError();
+ DWORD winError = GetLastError();
if (winError != NO_ERROR) {
TclWinConvertError(winError);
*errorCodePtr = errno;
@@ -479,7 +479,7 @@ FileSeekProc(instanceData, offset, mode, errorCodePtr)
newPos = SetFilePointer(infoPtr->handle, (LONG) offset, &newPosHigh,
moveMethod);
if (newPos == INVALID_SET_FILE_POINTER) {
- int winError = GetLastError();
+ DWORD winError = GetLastError();
if (winError != NO_ERROR) {
TclWinConvertError(winError);
*errorCodePtr = errno;
@@ -540,7 +540,7 @@ FileWideSeekProc(instanceData, offset, mode, errorCodePtr)
newPos = SetFilePointer(infoPtr->handle, (LONG) offset, &newPosHigh,
moveMethod);
if (newPos == INVALID_SET_FILE_POINTER) {
- int winError = GetLastError();
+ DWORD winError = GetLastError();
if (winError != NO_ERROR) {
TclWinConvertError(winError);
*errorCodePtr = errno;