Module: wine Branch: master Commit: f793221f0fa3b46a3994903f15cb6292969feb65 URL: http://source.winehq.org/git/wine.git/?a=commit;h=f793221f0fa3b46a3994903f15... Author: Francois Gouget <fgouget(a)codeweavers.com> Date: Mon May 21 16:03:37 2007 +0200 msvcrt/tests: When compiling with Visual C++ 2005, one must define _CRT_NON_CONFORMING_SWPRINTFS otherwise swprintf() takes an extra parameter. --- dlls/msvcrt/tests/printf.c | 5 +++++ 1 files changed, 5 insertions(+), 0 deletions(-) diff --git a/dlls/msvcrt/tests/printf.c b/dlls/msvcrt/tests/printf.c index 23cc5c8..61672f9 100644 --- a/dlls/msvcrt/tests/printf.c +++ b/dlls/msvcrt/tests/printf.c @@ -19,6 +19,11 @@ * License along with this library; if not, write to the Free Software * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA */ + +/* With Visual Studio >= 2005, swprintf() takes an extra parameter unless + * the following macro is defined. + */ +#define _CRT_NON_CONFORMING_SWPRINTFS #include <stdio.h>