diff options
author | mdejong <mdejong@noemail.net> | 2003-01-14 02:06:10 (GMT) |
---|---|---|
committer | mdejong <mdejong@noemail.net> | 2003-01-14 02:06:10 (GMT) |
commit | 539704f2361fe7aaf6021e5a39df163cd2182c7f (patch) | |
tree | 023efb988c8483959418c28474b1c576859a43d1 /generic/tclClock.c | |
parent | 51d4222781f84087a1bb9b81dba9edf29f279927 (diff) | |
download | tcl-539704f2361fe7aaf6021e5a39df163cd2182c7f.zip tcl-539704f2361fe7aaf6021e5a39df163cd2182c7f.tar.gz tcl-539704f2361fe7aaf6021e5a39df163cd2182c7f.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.
FossilOrigin-Name: 5a8676e8059bce627efec6c6a6e09c65f1a54251
Diffstat (limited to 'generic/tclClock.c')
-rw-r--r-- | generic/tclClock.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/generic/tclClock.c b/generic/tclClock.c index 549cc0a..774f72a 100644 --- a/generic/tclClock.c +++ b/generic/tclClock.c @@ -11,7 +11,7 @@ * See the file "license.terms" for information on usage and redistribution * of this file, and for a DISCLAIMER OF ALL WARRANTIES. * - * RCS: @(#) $Id: tclClock.c,v 1.16 2002/07/05 11:16:01 rmax Exp $ + * RCS: @(#) $Id: tclClock.c,v 1.17 2003/01/14 02:06:11 mdejong Exp $ */ #include "tcl.h" @@ -263,7 +263,7 @@ FormatClock(interp, clockVal, useGMT, format) char *p; int result; time_t tclockVal; -#ifndef HAVE_TM_ZONE +#if defined(HAVE_TM_ZONE) && !defined(WIN32) int savedTimeZone = 0; /* lint. */ char *savedTZEnv = NULL; /* lint. */ #endif |