summaryrefslogtreecommitdiffstats
path: root/win/tclWinTime.c
diff options
context:
space:
mode:
authormdejong <mdejong@noemail.net>2003-04-14 02:36:57 (GMT)
committermdejong <mdejong@noemail.net>2003-04-14 02:36:57 (GMT)
commit3285414d2f7e7f81edaed5058618d1d5121a5bf2 (patch)
treeda9db3b4445736bddeaa994bdd7e2c453a4a5ba8 /win/tclWinTime.c
parentb05c24fbae1a0bf59c820a1b2c343e460842a19b (diff)
downloadtcl-3285414d2f7e7f81edaed5058618d1d5121a5bf2.zip
tcl-3285414d2f7e7f81edaed5058618d1d5121a5bf2.tar.gz
tcl-3285414d2f7e7f81edaed5058618d1d5121a5bf2.tar.bz2
* win/configure: Regen.
* win/configure.in: Add check for FINDEX_INFO_LEVELS from winbase.h, known to be a problem in VC++ 5.2. Define HAVE_NO_FINDEX_ENUMS if the define does not exist. * win/tclWinFile.c: Put declarations for FINDEX_INFO_LEVELS and FINDEX_SEARCH_OPS inside a check for HAVE_NO_FINDEX_ENUMS so that these are not declared twice. This fixes the Mingw build. * win/tclWinTime.c: Rework the init of timeInfo so that the number or initializers matches the declaration. This was broken under Mingw. Add cast to avoid compile warning when calling the AccumulateSample function. FossilOrigin-Name: 1308c565b02533fb9c489fdd452489dfaeea9f88
Diffstat (limited to 'win/tclWinTime.c')
-rw-r--r--win/tclWinTime.c10
1 files changed, 4 insertions, 6 deletions
diff --git a/win/tclWinTime.c b/win/tclWinTime.c
index 5e3b66b..975b78f 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.15 2003/04/12 19:08:56 kennykb Exp $
+ * RCS: @(#) $Id: tclWinTime.c,v 1.16 2003/04/14 02:36:58 mdejong Exp $
*/
#include "tclWinInt.h"
@@ -106,6 +106,7 @@ static TimeInfo timeInfo = {
(HANDLE) NULL,
(HANDLE) NULL,
#ifdef HAVE_CAST_TO_UNION
+ (LARGE_INTEGER) (LONGLONG) 0,
(ULARGE_INTEGER) (DWORDLONG) 0,
(LARGE_INTEGER) (LONGLONG) 0,
(LARGE_INTEGER) (LONGLONG) 0,
@@ -113,13 +114,10 @@ static TimeInfo timeInfo = {
0,
0,
0,
-#endif
- 0,
- 0,
0,
+#endif
{ 0 },
{ 0 },
- 0,
0
};
@@ -875,7 +873,7 @@ UpdateTimeEachSecond()
*/
estFreq = AccumulateSample( curPerfCounter.QuadPart,
- curFileTime.QuadPart );
+ (ULONGLONG) curFileTime.QuadPart );
/*
* We want to adjust things so that time appears to be continuous.