Re: [xml] Win32 porting

Date view Thread view Subject view Author view

From: Daniel Veillard (Daniel.Veillard@w3.org)
Date: Wed Dec 29 1999 - 20:09:24 EST


On Tue, Dec 21, 1999 at 10:45:37PM +0100, Peter Jacobi wrote:
> When putting it into win32config.h, it will be included in every source
> file and so it will include winsock2.h and that will include zillions of
> lines of obscure Microsoft Windows headers in each .c file.
>
> Even if this doesn't break the code due to polluting the global
> namespace with MS stuff, it's a terrible waste.
>
> But I agree not everybody would like to modify the compiler's include
> directories. Perhaps in nanohttp.h it should read:
>
> #ifdef WIN32
> #define INCLUDE_WINSOCK
> #include "win32config.h"
> #else
>
> and in win32config.h:
>
> #ifdef INCLUDE_WINSOCK
> #include <winsock2.h>
> #define EWOULDBLOCK WSAEWOULDBLOCK
> [more #define removed]
> #endif

  Hum, Ok, I made that change

    thanks,

Daniel

-- 
	    [Yes, I have moved back to France !]
Daniel.Veillard@w3.org | W3C, INRIA Rhone-Alpes  | Today's Bookmarks :
Tel : +33 476 615 257  | 655, avenue de l'Europe | Linux, WWW, rpmfind,
Fax : +33 476 615 207  | 38330 Montbonnot FRANCE | rpm2html, XML,
http://www.w3.org/People/W3Cpeople.html#Veillard | badminton, and 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