7 Sep
2006
7 Sep
'06
5:45 p.m.
Jeff L <lats(a)yless4u.com.au> writes:
When compiling dlls/gdi/tests/metafile.c on line 1357 I get a warning C4013: "snprintf" is undefined. Looking around, it seems that snprinft is in fact _snprintf in Visual C++. I have found a define
#if !defined(HAVE_SNPRINTF) && defined(HAVE__SNPRINTF) #define snprintf _snprintf #endif
in wine/port.h but it requires config.h and they don't appear in my Visual C++ system. What is the best way to address this problem? It seems to be fairly common but I have not found an example in a test.
Just replace it by sprintf, tests should be made as portable as possible. -- Alexandre Julliard julliard(a)winehq.org