Re: [xml] Win32 porting

Date view Thread view Subject view Author view

From: Daniel Veillard (Daniel.Veillard@w3.org)
Date: Tue Dec 21 1999 - 12:25:19 EST


> See below my approch for compiling libxml under Win32. I would
> be interested to see comments from other libxml/Win32 users.
>
> A) Change the libxml source files:
> #ifdef WIN32
> #include "win32config.h"
> #else
> #include "config.h"
> #endif

  This seems Ok, i will commit this later today,

> B) My win32config.h is (the inf/nan stuff is rather ad hoc)
> #define HAVE_CTYPE_H
> #define HAVE_STDLIB_H
> #define HAVE_MALLOC_H
> #define HAVE_TIME_H
> #define HAVE_SYS_SOCKET_H
> #define HAVE_FCNTL_H
>
> #define LIBXML_VERSION "1.8.1"
>
> #include <io.h>
>
> #include <math.h>
> nt isinf (double d) {

I assume taht's a cut'n paste problem and actually this line reads

static int isinf (double d) {

right ?

>
> C) In the sys directory relative to the compiler default include
> directory I put a dummy socket.h:
> #include <winsock2.h>
> #define EWOULDBLOCK WSAEWOULDBLOCK
[more #define removed]

  Well this seems rather fragile, can't we just remove HAVE_SYS_SOCKET_H
and include this right away in win32config.h instead ?
The only include of <sys/socket.h> is in nanohttp.c and is protected
by HAVE_SYS_SOCKET_H,

Daniel

-- 
Daniel.Veillard@w3.org | W3C, INRIA Rhone-Alpes  | Today's Bookmarks :
Tel : +33 476 615 257  | 655, avenue de l'Europe | Linux XML libxml WWW
Fax : +33 476 615 207  | 38330 Montbonnot FRANCE | Gnome rpm2html rpmfind
 http://www.w3.org/People/all#veillard%40w3.org  | RPM badminton Kaffe
----
Message from the list xml@xmlsoft.org
Archived at : http://xmlsoft.org/messages/
to unsubscribe: echo "unsubscribe xml" | mail  majordomo@xmlsoft.org


Date view Thread view Subject view Author view

This archive was generated by hypermail 2b29 : Wed Aug 02 2000 - 12:29:56 EDT