tclWinTime.c does not compile with MSVC14
Closed / Fixed59a2e78e54d3361c33b8cd6eef55d384d8abecd7Created 12 years agoUpdated 12 years ago
Descriptionplain2014-10-02 18:37:13
The C Runtime in the upcoming VC14 has removed the definitions of daylight, timezone and tzname in time.h and now requires _daylight, _timezone and _tzname be used instead. (And it'll probably warn about those and suggest _get_timezone(int *timezone), etc. instead, but I can't imagine the underscore prefixed names going away.) The _MSC_VER value for VC14 is 1900, but the alternative names have been available since at least VC10 (1600). I'm responsible for porting CPython 3.5 to build with VC14, and it would be nice if we could use Tcl without having to manually patch it to support the newer compiler. So far in my testing this is the only thing that needs fixing (there's also a bug in VC14's NMake that I've reported to the team responsible, so hopefully they'll fix that). Thanks, Steve
Referenced by2
c9c7d35c9dFix [59a2e78e54d3361c33b8cd6eef55d384d8abecd7|59a2e78e54] : tclWinTime.c does not compile with MSVC14. Eliminate use of __MINGW32__ macro everywhere, as it is deprecated. check-in2014-10-08 07:11:53c69f003888Fix [59a2e78e54d3361c33b8cd6eef55d384d8abecd7|59a2e78e54] : tclWinTime.c does not compile with MSVC14. Eliminate use of __MINGW32__ macro everywhare, as it is deprecated. check-in2014-10-08 07:02:34
jan.nijtmanswiki2014-10-08 07:14:58
Fixed in core-8-5-branch [c69f003888] and trunk [c9c7d35c9d].
Thanks for the report!
Log in (anonymous is fine) to add a comment.