[Zlib-devel] '_vsnprintf' build error under Visual Studio 9 & 10 Beta
Philip Lowman
philip at yhbt.com
Fri Jan 1 22:53:14 EST 2010
I'm getting a build error of zlib 1.2.3.4 under Visual Studio 9 and
Visual Studio 10 Beta. The error message is as follows:
3>gzio.c
3>C:\Program Files (x86)\Microsoft Visual Studio
9.0\VC\include\stdio.h(358) : error C3163: '_vsnprintf': attributes
inconsistent with previous declaration
3> C:\Program Files (x86)\Microsoft Visual Studio
9.0\VC\include\stdio.h(350) : see declaration of '_vsnprintf'
Commenting out the definition of vsnprintf to _vsnprintf (which
appears to have been a workaround for an earlier compilation issue
under Visual Studio) seems to have fixed the problem. This patch here
omits the redefinition under VS9 or greater.
--
Philip Lowman
-------------- next part --------------
A non-text attachment was scrubbed...
Name: zlib-1.2.3.4+msvcfix.diff
Type: application/octet-stream
Size: 615 bytes
Desc: not available
URL: <http://madler.net/pipermail/zlib-devel_madler.net/attachments/20100101/e735d161/attachment.obj>
More information about the Zlib-devel
mailing list