From 594f650ef34d6b732bb391b10d1c696de6108509 Mon Sep 17 00:00:00 2001 From: Kevin B Kenny Date: Wed, 18 Aug 2004 21:29:12 +0000 Subject: silence compiler warning on systems without mktime --- generic/tclClock.c | 12 ++++++------ 1 file 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 ) { -- cgit v0.12