[Zlib-devel] vsnprintf (in gzio.c) And Microsoft Visual Studio 7 (.net)
Gilles Vollant
info at winimage.com
Sun Mar 9 08:20:01 EST 2003
In Microsoft Visual Studio 7 (.net), there is no vsnprintf. There is
only :
_CRTIMP int __cdecl _vsnprintf(char *, size_t, const char *, va_list);
With a "_" before vsnprintf
We have two solution to compile gzio.c
1)
#define NO_vsnprintf
OR
#define vsnprintf _vsnprintf
I've uploaded http://www.winimage.com/zLibDll/zconfgv.zip with
zconf120gv2.h (a new zconf.h) where I added
/*
* Microsoft Visual C++ did not define vsnprintf but define _vsnprintf
*/
#ifdef _MSC_VER
# define vsnprintf _vsnprintf
#endif
More information about the Zlib-devel
mailing list