A Sunday 13 April 2008 09:19:15, Vincent Torri wrote:
> Hey,
>
> I'm porting a library from linux to win ce using cegcc (not mingw32ce) and
> it uses htonl.
>
> On linux, i have to include in.h, on windows (desktop) i have to include
> winsock2.h. I guard these headers with some defines (_WIN32 for
> winsock2.h). As i compile with -mwin32, in.h and winsock2.h are both
> included, hence an error. I then forbid the inclusion of winsock2.h with
> cegcc.
>

cegcc provides a wrapper around the winsock functions, the intention
of which is to make the implementation of sockets more in line with
POSIX.  You are not supposed to include winsock2.h
in cegcc apps.  There are serious conflicts if you do so.

-- 
Pedro Alves

-------------------------------------------------------------------------
This SF.net email is sponsored by the 2008 JavaOne(SM) Conference 
Don't miss this year's exciting event. There's still time to save $100. 
Use priority code J8TL2D2. 
http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/javaone
_______________________________________________
Cegcc-devel mailing list
Cegcc-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/cegcc-devel

Reply via email to