Re: strerror_r-posix on MSVC

2011-09-25 Thread Bruno Haible
> 2011-09-22 Bruno Haible > > strerror_r-posix: Avoid a link error on MSVC. > * m4/strerror_r.m4 (gl_PREREQ_STRERROR_R): Check for snprintf. > * lib/strerror_r.c (snprintf): Define to _snprintf if it doesn't exist. Oops, that fixed the link error, but at the cost of a test su

strerror_r-posix on MSVC

2011-09-22 Thread Bruno Haible
The module 'strerror_r-posix' leads to a link error on MSVC, because it uses snprintf() which does not exist on this platform. The simplest solution would be to add a dependency to 'snprintf'. But that would drag in vasnprintf.c, which is really overkill for the simple use of snprintf() here. The