Re: [xml] Patches for Win32/MSCC build

On Wed, Apr 18, 2001 at 10:25:05AM +0200, Peter Jacobi wrote:
Hi Igor,

Thanks for all yout trouble on MSVC porting, but...

4. include/win32config.h now has the mappings for snprintf and vsnprintf,
which are present in Microsoft's C runtime under different names. The
patch is in win32config.diff

...are thinking of those fellows, using other compilers on WIN32 (Borland, 
Watcom, ..)? Please be so kind and wrap MSVC stuff in win32config in 

#ifdef MSC ...// or whatever

   I think that's the case:

/* Microsoft's C runtime names all non-ANSI functions with a leading
   underscore. Since functionality is still the same, they can be used. */
#ifdef _MSC_VER
#define snprintf _snprintf
#define vsnprintf _vsnprintf
#endif /* _MSC_VER */


Daniel Veillard      | Red Hat Network
veillard redhat com  | libxml Gnome XML XSLT toolkit | Rpmfind RPM search engine

[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]