crt: Make __ms_snprintf and __ms_vsnprintf aliases for snprintf and vsnprintf

Prior to dc3b2e2bfa9b5a4fcee6f0123047ecc5a6a35d1f, snprintf was
aliased to _snprintf and vsnprintf was aliased to _vsnprintf in
the import library. As _snprintf doesn't really behave as snprintf
should, the aliases were removed.

Instead make them aliases to the __ms_snprintf and __ms_vsnprintf
functions, which is what one would end up linking against when
referencing snprintf/vsnprintf after including stdio.h, unless
__USE_MINGW_ANSI_STDIO is defined.

This is necessary, as the snprintf function needs to exist with
that symbol name, as certain projects/build systems try to detect its
presence with a linking test, without including stdio.h.

Signed-off-by: Martin Storsjö <martin@martin.st>
2 files changed