lwip-devel
[Top][All Lists]
Advanced

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

[lwip-devel] [patch #5448] include '#ifdef __cplusplus extern "C" {' in


From: Simon Goldschmidt
Subject: [lwip-devel] [patch #5448] include '#ifdef __cplusplus extern "C" {' in all header files
Date: Wed, 04 Apr 2007 19:47:36 +0000
User-agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; de; rv:1.8.1.3) Gecko/20070309 Firefox/2.0.0.3

Follow-up Comment #10, patch #5448 (project lwip):

I just realized it's not enough to include that #ifdef ..  extern "C" stuff.
sockets.h brings more problems: if LWIP_COMPAT_SOCKETS=1 I can't include the
file into classes that have functions with the same names (e.g. a call to
object->send() will be changed to object->lwip_send() by the preprocessor).

In my opinion, this should be changed so that e.g. send() is really exported
as function, not as macro.
We could define the function as LWIP_SEND(...) and then define LWIP_SEND to
lwip_send or send as we need it.

But I can imagine I'm alone with thoughts like theses... ?

    _______________________________________________________

Reply to this item at:

  <http://savannah.nongnu.org/patch/?5448>

_______________________________________________
  Nachricht geschickt von/durch Savannah
  http://savannah.nongnu.org/





reply via email to

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