Tcl Source Code

Check-in [9ca59559ba]
Login
Bounty program for improvements to Tcl and certain Tcl packages.
Tcl 2019 Conference, Houston/TX, US, Nov 4-8
Send your abstracts to tclconference@googlegroups.com
or submit via the online form by Sep 9.

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

Overview
Comment:Fix conflict with timezone() function in some MSVC versions
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | core-8-5-branch
Files: files | file ages | folders
SHA3-256:9ca59559ba252c4b94cbbadeae1833f62d1271fbaf18857959b34dee84871315
User & Date: jan.nijtmans 2019-01-03 20:47:40
Context
2019-01-04
22:23
Fix signed<->unsigned comparsion warning (occurring in some gcc compilation flags). Micro-optimizat... check-in: cf7e97de51 user: jan.nijtmans tags: core-8-5-branch
2019-01-03
20:48
Fix conflict with timezone() function in some MSVC versions check-in: 8ca7418824 user: jan.nijtmans tags: core-8-6-branch
20:47
Fix conflict with timezone() function in some MSVC versions check-in: 9ca59559ba user: jan.nijtmans tags: core-8-5-branch
2018-12-30
22:44
Fix [3cf3a939d3]: timezone deprecated in vc2017 check-in: f062d9ee2c user: jan.nijtmans tags: core-8-5-branch
Changes
Hide Diffs Unified Diffs Ignore Whitespace Patch

Changes to win/tclWinTime.c.

644
645
646
647
648
649
650

651
652
653
654
655
656
657
    int useGMT)
{
    struct tm *tmPtr;
    time_t time;

    if (!useGMT) {
#if defined(_MSC_VER) && (_MSC_VER >= 1900)

	long timezone = 0;
#endif

	tzset();

	/*
	 * If we are in the valid range, let the C run-time library handle it.







>







644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
    int useGMT)
{
    struct tm *tmPtr;
    time_t time;

    if (!useGMT) {
#if defined(_MSC_VER) && (_MSC_VER >= 1900)
#	undef timezone /* prevent conflict with timezone() function */
	long timezone = 0;
#endif

	tzset();

	/*
	 * If we are in the valid range, let the C run-time library handle it.