Re: [xml] Patches for Win32/MSCC build
- From: Daniel Veillard <veillard redhat com>
- To: Peter Jacobi <pj walter-graphtek com>
- Cc: xml gnome org
- Subject: Re: [xml] Patches for Win32/MSCC build
- Date: Wed, 18 Apr 2001 05:49:59 -0400
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
#endif
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
--
Daniel Veillard | Red Hat Network http://redhat.com/products/network/
veillard redhat com | libxml Gnome XML XSLT toolkit http://xmlsoft.org/
http://veillard.com/ | Rpmfind RPM search engine http://rpmfind.net/
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]