summaryrefslogtreecommitdiffstats
path: root/generic/tclClock.c
diff options
context:
space:
mode:
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 ) {