core.stdc.stdio: prepare for MSVCRT 14 (VS 2015) support#971
core.stdc.stdio: prepare for MSVCRT 14 (VS 2015) support#971kinke wants to merge 3 commits intodlang:masterfrom
Conversation
src/core/stdc/stdio.d
Outdated
There was a problem hiding this comment.
Btw this really ought to be checked for the other platforms too. A 32-bit int is highly unlikely.
|
This should be using a separate version statement for the 2014 version. There is no reason that earlier versions should be prevented from building DMD and D code. This change also probably breaks all code that called snprintf using a string modifier. Lastly, don't half indent version statements. |
|
The 2014 version (well, so much time has passed for such a mini-PR, that the VS version has been advanced to 2015 in the meantime :o)) is disabled and only there to urge the responsible people to move on with Windows and MSVCRT support. |
|
The last commit is by no means complete. |
Once MSVC 2014 is required, things will get easier, for example here because they now provide a standard-conformant (v)snprintf() implementation (except for x87 support), see this MSDN blog.
Additionally, _fputc_nolock() and _fgetc_nolock() are no longer defined as macros, but available in the library, just like any other supported C runtime.