On Wed, 2006-09-06 at 16:30 +0200, Frédéric BERNON wrote:
> I have got some problems with "read", "write" and "close" defines in the "#if 
> LWIP_COMPAT_SOCKETS" in sockets.h. These defines cause a compiler error due 
> to same names than my "real" OS calls (in this OS - tmOsal/pSOS - there is a 
> layer which wrap calls to the correct "IO driver"). I simply comment them, 
> but wouldn't it be nicer to add a #define like "LWIP_IO_SOCKETS" in opt.h to 
> include or not include these defines?

Why are read, write, and close special cases?  Because they can apply to
things other than sockets perhaps?  Seems odd to #define some of the
functions to standard names, but leave others as lwip_<blah>()

Kieran



_______________________________________________
lwip-users mailing list
[email protected]
http://lists.nongnu.org/mailman/listinfo/lwip-users

Reply via email to