summaryrefslogtreecommitdiffstats
path: root/win/tclWinTime.c
diff options
context:
space:
mode:
authorKevin B Kenny <kennykb@acm.org>2004-05-17 14:26:31 (GMT)
committerKevin B Kenny <kennykb@acm.org>2004-05-17 14:26:31 (GMT)
commit02328b407284a12dc2109146c3f29cae15d45a28 (patch)
tree636791149a751acb57bd43a77003dc5fe427a49f /win/tclWinTime.c
parentaeeb2dda569d75a5f5162a97de263878e7136478 (diff)
downloadtcl-02328b407284a12dc2109146c3f29cae15d45a28.zip
tcl-02328b407284a12dc2109146c3f29cae15d45a28.tar.gz
tcl-02328b407284a12dc2109146c3f29cae15d45a28.tar.bz2
* generic/tclInt.decls: Restored TclpTime_t kludge to all
* generic/tclIntPlatDecls.h: places where it appeared before the * unix/tclUnixPort.h changes of 14 May, because use of * unix/tclUnixTime.h native time_t in its place requires * win/tclWinTime.h: the 8.5 header reforms. [Bug #955146]
Diffstat (limited to 'win/tclWinTime.c')
-rw-r--r--win/tclWinTime.c19
1 files changed, 11 insertions, 8 deletions
diff --git a/win/tclWinTime.c b/win/tclWinTime.c
index 539dd6c..faa7a3c 100644
--- a/win/tclWinTime.c
+++ b/win/tclWinTime.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: tclWinTime.c,v 1.14.2.3 2004/05/14 21:41:12 kennykb Exp $
+ * RCS: @(#) $Id: tclWinTime.c,v 1.14.2.4 2004/05/17 14:26:50 kennykb Exp $
*/
#include "tclWinInt.h"
@@ -1072,11 +1072,12 @@ AccumulateSample( Tcl_WideInt perfCounter,
*/
struct tm *
-TclpGmtime( timePtr )
- CONST time_t *timePtr; /* Pointer to the number of seconds
- * since the local system's epoch */
-
+TclpGmtime( tt )
+ TclpTime_t tt;
{
+ CONST time_t *timePtr = (CONST time_t *) tt;
+ /* Pointer to the number of seconds
+ * since the local system's epoch */
/*
* The MS implementation of gmtime is thread safe because
* it returns the time in a block of thread-local storage,
@@ -1103,11 +1104,13 @@ TclpGmtime( timePtr )
*/
struct tm *
-TclpLocaltime( timePtr )
- CONST time_t *timePtr; /* Pointer to the number of seconds
+TclpLocaltime( tt )
+ TclpTime_t tt;
+{
+ CONST time_t *timePtr = (CONST time_t *) tt;
+ /* Pointer to the number of seconds
* since the local system's epoch */
-{
/*
* The MS implementation of localtime is thread safe because
* it returns the time in a block of thread-local storage,