crt: Move stdio/[v]snprintf.c to libmsvcr*.a from libmingwex.a

Originally, these source files only defined the symbols __ms_[v]snprintf
(based on the _vsnprintf function from msvcr*.dll), but since
3a1127672ba390, they also define [v]snprintf as aliases to those
functions.

For ucrt, we shouldn't be defining [v]snprintf aliases based on
msvcr*.dll functions; we already have [v]snprintf for ucrt in
stdio/ucrt_[v]snprintf.c.

The __ms_[v]snprintf functions aren't visible in UCRT mode at all,
so there's no need to keep them available in libmingwex.a.
Alternatively, we could also consider splitting out the aliases
into small wrapper functions in separate source files.

This fixes using [v]snprintf functions with UCRT, which was broken
since 3a1127672ba390.

Signed-off-by: Martin Storsjö <martin@martin.st>
1 file changed