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.

But it makes me wonder if it is normal that, with cegcc, htonl is defined 
twice. According to the doc, cegcc is more for porting linux code to 
native win ce platform. So i have supposed that functions like htonl be in 
in.h and not in winsock2.h. Is it normal ?

thank you

Vincent Torri

-------------------------------------------------------------------------
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