Work at SourceForge, help us to make it a better place! We have an immediate need for a Support Technician in our San Francisco or Denver office.

Close

#1 To compile on Visual Studio 2008

open
nobody
None
5
2008-08-28
2008-08-28
David Thornley
No

Patch to allow compilation on Visual Studio 2008.

Versions of Visual Studio prior to 2005 did not have vsnprintf, so there was a line in zutil.h:

# define vsnprintf _vsnprintf

that was conditionally compiled in. This is not only not needed in Visual Studio 2008, but prevents U3D from compiling.

The fix is to add another condition to the compilation, so the #define is only included if this is not Visual Studio, or the version of Visual Studio is before VS 2005.

Discussion

  • David Thornley
    David Thornley
    2008-08-28

    Unidiff patch file

     
    Attachments