Visual C++ does not seem to have snprinft

Jeff L lats at yless4u.com.au
Thu Sep 7 09:05:29 CDT 2006


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.

Jeff Latimer



More information about the wine-devel mailing list