diff options
author | davygrvy@pobox.com <davygrvy> | 2003-12-16 02:55:38 (GMT) |
---|---|---|
committer | davygrvy@pobox.com <davygrvy> | 2003-12-16 02:55:38 (GMT) |
commit | 13070e4fc3def4b955d6e29a017974a8cf347d3c (patch) | |
tree | ac8c841e1470bf5440f5c63c7ab2e4f25b5b2821 /win/tclWinFile.c | |
parent | 5ca4f9fabf80b06b92364efbd3b896af87444f27 (diff) | |
download | tcl-13070e4fc3def4b955d6e29a017974a8cf347d3c.zip tcl-13070e4fc3def4b955d6e29a017974a8cf347d3c.tar.gz tcl-13070e4fc3def4b955d6e29a017974a8cf347d3c.tar.bz2 |
* win/tclWinFile.c (TclpUtime) : utimbuf struct not a problem
with Borland.
* win/tclWinTime.c (TclpGetDate) : Borland's localtime() has
a slight behavioral difference.
From Helmut Giese <hgiese@ratiosoft.com> [Patch 758097].
Diffstat (limited to 'win/tclWinFile.c')
-rw-r--r-- | win/tclWinFile.c | 12 |
1 files changed, 10 insertions, 2 deletions
diff --git a/win/tclWinFile.c b/win/tclWinFile.c index 697bff3..a000802 100644 --- a/win/tclWinFile.c +++ b/win/tclWinFile.c @@ -11,7 +11,7 @@ * See the file "license.terms" for information on usage and redistribution * of this file, and for a DISCLAIMER OF ALL WARRANTIES. * - * RCS: @(#) $Id: tclWinFile.c,v 1.57 2003/12/12 17:09:27 vincentdarley Exp $ + * RCS: @(#) $Id: tclWinFile.c,v 1.58 2003/12/16 02:55:38 davygrvy Exp $ */ //#define _WIN32_WINNT 0x0500 @@ -2505,12 +2505,20 @@ TclpUtime(pathPtr, tval) struct utimbuf *tval; /* New modification date structure */ { int res; +#ifndef __BORLANDC__ /* * Windows uses a slightly different structure name and, possibly, * contents, so we have to copy the information over */ struct _utimbuf buf; - +#else + /* + * Borland's compiler does not, but we still copy the content into a + * local variable using the 'generic' name + */ + struct utimbuf buf; +#endif + buf.actime = tval->actime; buf.modtime = tval->modtime; |