diff options
author | Martin Storsjö <martin@martin.st> | 2022-01-20 11:46:49 +0000 |
---|---|---|
committer | Martin Storsjö <martin@martin.st> | 2022-01-31 22:29:12 +0200 |
commit | 1a5388ca67b03ca21043369f2023ffa0e9bc35dc (patch) | |
tree | cc0e0db1153b77df95f332a51a228f8cee4ed74c /flang/lib/Frontend/CompilerInvocation.cpp | |
parent | 0ee7a2c3046d465b199375bfe212d3d209967b03 (diff) | |
download | llvm-1a5388ca67b03ca21043369f2023ffa0e9bc35dc.zip llvm-1a5388ca67b03ca21043369f2023ffa0e9bc35dc.tar.gz llvm-1a5388ca67b03ca21043369f2023ffa0e9bc35dc.tar.bz2 |
[libcxx] [Windows] Use the standard vsnprintf instead of _vsnprintf
In ancient Microsoft C runtimes, there might only have been
a nonstandard `_vsnprintf` instead of the standard `vsnprintf`, but
in modern versions (the only ones relevant for libc++), both
are available.
In MinGW configurations built with `__USE_MINGW_ANSI_STDIO=1` (as it
is built in CI), `vsnprintf` provides a more standards compliant
behaviour than what Microsoft's CRT provides, while `_vsnprintf` retains
the Microsoft C runtime specific quirks.
Differential Revision: https://reviews.llvm.org/D118187
Diffstat (limited to 'flang/lib/Frontend/CompilerInvocation.cpp')
0 files changed, 0 insertions, 0 deletions