summaryrefslogtreecommitdiffstats
path: root/win/tclWinTime.c
diff options
context:
space:
mode:
authornijtmans@users.sourceforge.net <jan.nijtmans>2013-05-17 15:08:48 (GMT)
committernijtmans@users.sourceforge.net <jan.nijtmans>2013-05-17 15:08:48 (GMT)
commit99ecc9840c792663388111ce37a8e67f833d51d0 (patch)
tree0c3ab2d3a69e70373084c032d1498f40a4b73c96 /win/tclWinTime.c
parent0b96bf214be0b7fe4e2ba0cd9203ba70d09ff816 (diff)
downloadtcl-99ecc9840c792663388111ce37a8e67f833d51d0.zip
tcl-99ecc9840c792663388111ce37a8e67f833d51d0.tar.gz
tcl-99ecc9840c792663388111ce37a8e67f833d51d0.tar.bz2
- eliminate compiler warning when compiling with Visual Studio.
- Make sure that _ftime() from msvcrt.dll is used, not ftime() from mingw (which might use 64-bit time_t)
Diffstat (limited to 'win/tclWinTime.c')
-rw-r--r--win/tclWinTime.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/win/tclWinTime.c b/win/tclWinTime.c
index 8bbd8fd..8fdc071 100644
--- a/win/tclWinTime.c
+++ b/win/tclWinTime.c
@@ -258,7 +258,7 @@ void
Tcl_GetTime(timePtr)
Tcl_Time *timePtr; /* Location to store time information. */
{
- struct timeb t;
+ struct _timeb t;
int useFtime = 1; /* Flag == TRUE if we need to fall back
* on ftime rather than using the perf
@@ -431,7 +431,7 @@ Tcl_GetTime(timePtr)
if ( useFtime ) {
/* High resolution timer is not available. Just use ftime */
- ftime(&t);
+ _ftime(&t);
timePtr->sec = (long)t.time;
timePtr->usec = t.millitm * 1000;
}