Tcl Source Code

Check-in [6f3fbd689c]
Login

Many hyperlinks are disabled.
Use anonymous login to enable hyperlinks.

Overview
Comment:When compiling Tcl with mingw32/wsl-4.0, make sure that no 64-bit time functions are used, which don't exist in Win95/98/ME.
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | core-8-4-branch
Files: files | file ages | folders
SHA1: 6f3fbd689c6bfce195f2f59ee1751bfc3f1a9a58
User & Date: jan.nijtmans 2013-05-23 11:28:18
Context
2013-06-03
14:01
Improve reliability of test httpold-4.12. Thanks AF! check-in: 15fee931dd user: dgp tags: core-8-4-branch
2013-05-28
15:15
Tag for release check-in: 499d2a6aa7 user: dgp tags: core-8-4-20-rc
2013-05-23
11:39
merge-mark check-in: e85cd0b5a8 user: jan.nijtmans tags: core-8-5-branch
11:28
When compiling Tcl with mingw32/wsl-4.0, make sure that no 64-bit time functions are used, which don... check-in: 6f3fbd689c user: jan.nijtmans tags: core-8-4-branch
2013-05-19
14:04
Don't #define VOID on VxWorks, as it is already typdef'd to void Eliminate possibly conflicting LOCA... check-in: 4bed29cc48 user: jan.nijtmans tags: core-8-4-branch
Changes
Hide Diffs Unified Diffs Ignore Whitespace Patch

Changes to compat/strftime.c.

40
41
42
43
44
45
46



47
48
49
50
51
52
53
 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
 * SUCH DAMAGE.
 */




#include <time.h>
#include <string.h>
#include <locale.h>
#include "tclInt.h"
#include "tclPort.h"

#define TM_YEAR_BASE   1900







>
>
>







40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
 * SUCH DAMAGE.
 */

#if defined(_WIN32) && !defined(_WIN64)
#   define _USE_32BIT_TIME_T
#endif
#include <time.h>
#include <string.h>
#include <locale.h>
#include "tclInt.h"
#include "tclPort.h"

#define TM_YEAR_BASE   1900

Changes to win/tclWinTime.c.

1
2
3
4
5
6
7
8
9
10
11
12



13
14
15
16
17
18
19
/* 
 * tclWinTime.c --
 *
 *	Contains Windows specific versions of Tcl functions that
 *	obtain time values from the operating system.
 *
 * Copyright 1995-1998 by Sun Microsystems, Inc.
 *
 * See the file "license.terms" for information on usage and redistribution
 * of this file, and for a DISCLAIMER OF ALL WARRANTIES.
 */




#include "tclWinInt.h"

#define SECSPERDAY (60L * 60L * 24L)
#define SECSPERYEAR (SECSPERDAY * 365L)
#define SECSPER4YEAR (SECSPERYEAR * 4L + SECSPERDAY)

/*












>
>
>







1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
/* 
 * tclWinTime.c --
 *
 *	Contains Windows specific versions of Tcl functions that
 *	obtain time values from the operating system.
 *
 * Copyright 1995-1998 by Sun Microsystems, Inc.
 *
 * See the file "license.terms" for information on usage and redistribution
 * of this file, and for a DISCLAIMER OF ALL WARRANTIES.
 */

#if defined(_WIN32) && !defined(_WIN64)
#   define _USE_32BIT_TIME_T
#endif
#include "tclWinInt.h"

#define SECSPERDAY (60L * 60L * 24L)
#define SECSPERYEAR (SECSPERDAY * 365L)
#define SECSPER4YEAR (SECSPERYEAR * 4L + SECSPERDAY)

/*