From 1f664ef5314fb6e438137c44c95cf5ecdbdb5e9b Mon Sep 17 00:00:00 2001 From: Steve Hay Date: Sun, 19 Feb 2017 13:33:37 +0000 Subject: Add support for VS2015 (VC++ 14.0) Due to the rewritten CRT in this version of Visual C++ it is no longer possible (or at least not at all easy) to make use of the ioinfo struct, which commit b47a847f62 (re-)introduced in order to fix RT#120091/118059. Therefore, we effectively revert commit b47a847f62 for VS2015 onwards on the basis that being able to build with VS2015 onwards is more important than the RT#120091/118059 bug fix. This does unfortunately mean that perls built with <=VS2013 will not be compatible with perls built with >=VS2015, but they may well not have been compatible anyway because of the CRT rewrite, and certainly wouldn't be compatible if perl builds with VS2015 were not supported! See RT#125714 for more discussion about this. --- perlio.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'perlio.c') diff --git a/perlio.c b/perlio.c index 79cdc2700d..3e936a26d0 100644 --- a/perlio.c +++ b/perlio.c @@ -3231,7 +3231,7 @@ PerlIOStdio_invalidate_fileno(pTHX_ FILE *f) structure at all */ # else - f->_file = -1; + PERLIO_FILE_file(f) = -1; # endif return 1; # else -- cgit v1.2.1