Visual C++ does not seem to have snprinft
Alexandre Julliard
julliard at winehq.org
Thu Sep 7 12:45:10 CDT 2006
Jeff L <lats at 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 at winehq.org
More information about the wine-devel
mailing list