summaryrefslogtreecommitdiffstats
path: root/generic/tclClock.c
diff options
context:
space:
mode:
authorKevin B Kenny <kennykb@acm.org>2004-08-18 21:29:12 (GMT)
committerKevin B Kenny <kennykb@acm.org>2004-08-18 21:29:12 (GMT)
commit594f650ef34d6b732bb391b10d1c696de6108509 (patch)
treef35715d058fa9c987fea25b37c4d38c12f20a87f /generic/tclClock.c
parent53141db9967b22cf67fd4a345ee469f685093f16 (diff)
downloadtcl-594f650ef34d6b732bb391b10d1c696de6108509.zip
tcl-594f650ef34d6b732bb391b10d1c696de6108509.tar.gz
tcl-594f650ef34d6b732bb391b10d1c696de6108509.tar.bz2
silence compiler warning on systems without mktime
Diffstat (limited to 'generic/tclClock.c')
-rw-r--r--generic/tclClock.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/generic/tclClock.c b/generic/tclClock.c
index 91f204b..3fa51ae 100644
--- a/generic/tclClock.c
+++ b/generic/tclClock.c
@@ -12,7 +12,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.29 2004/08/18 19:58:59 kennykb Exp $
+ * RCS: @(#) $Id: tclClock.c,v 1.30 2004/08/18 21:29:12 kennykb Exp $
*/
#include "tclInt.h"
@@ -22,7 +22,7 @@
*/
#ifdef WIN32
-#define HAVE_MKTIME
+#define HAVE_MKTIME 1
#endif
/*
@@ -215,16 +215,16 @@ TclClockMktimeObjCmd( ClientData clientData,
Tcl_Obj* CONST* objv )
/* Parameter vector */
{
- int i;
- struct tm toConvert; /* Time to be converted */
- time_t convertedTime; /* Time converted from mktime */
-
#ifndef HAVE_MKTIME
Tcl_SetObjResult( interp,
Tcl_NewStringObj( "cannot determine local time", -1 ) );
return TCL_ERROR;
#else
+ int i;
+ struct tm toConvert; /* Time to be converted */
+ time_t convertedTime; /* Time converted from mktime */
+
/* Convert parameters */
if ( objc != 7 ) {