ECToo / xdelta

Automatically exported from code.google.com/p/xdelta
0 stars 0 forks source link

Cannot compile with VC7.1 due to vsnprintf #32

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Compile xdelta with Visual C++ 7.1

What is the expected output? What do you see instead?
Linker error: vsnprintf not defined

What version of the product are you using? On what operating system?
3.0q on WinXP SP2

Please provide any additional information below.
The issue could be fixed by using _vsnprintf instead of vsnprintf on VC7.1

Original issue reported on code.google.com by as...@gmx.net on 25 Mar 2007 at 5:43

GoogleCodeExporter commented 9 years ago
Only use _vsnprintf on VC7.1? What conditional should I use?

Original comment by josh.mac...@gmail.com on 25 Mar 2007 at 5:56

GoogleCodeExporter commented 9 years ago
#if _MSC_VER < 1400
  ret = _vsnprintf (str, n, fmt, a);
#else
  ret = vsnprintf (str, n, fmt, a);
#endif

_vsnprintf works in VC8 but MS may remove the non-ANSI _vsnprintf sometime.

Original comment by as...@gmx.net on 25 Mar 2007 at 7:24

GoogleCodeExporter commented 9 years ago
Fixed. Thanks.

Original comment by josh.mac...@gmail.com on 14 Dec 2007 at 9:22