lwip-users
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [lwip-users] LWIP_COMPAT_SOCKETS in sockets.h


From: Kieran Mansley
Subject: Re: [lwip-users] LWIP_COMPAT_SOCKETS in sockets.h
Date: Wed, 06 Sep 2006 15:47:34 +0100

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





reply via email to

[Prev in Thread] Current Thread [Next in Thread]