[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[lwip-devel] [patch #5448] include '#ifdef __cplusplus extern "C" {' in
From: |
Frédéric Bernon |
Subject: |
[lwip-devel] [patch #5448] include '#ifdef __cplusplus extern "C" {' in all header files |
Date: |
Thu, 05 Apr 2007 07:24:44 +0000 |
User-agent: |
Mozilla/5.0 (Windows; U; Windows NT 5.1; fr; rv:1.8.1.3) Gecko/20070309 Firefox/2.0.0.3 |
Follow-up Comment #11, patch #5448 (project lwip):
Yes, in fact, I don't think it's a good idea (because you will add a little
overhead, and increase a little bit the footprintn and more important, you
lost the source code BSD compatibility), but I can understand your problem.
Perhaps you can use a "const" function pointer with the same prototype
initialized with lwip_send. By example ("as is") :
sockets.h:
typedef int (* bsd_send)(int s, const void *dataptr, int size, unsigned int
flags);
extern const bsd_send send;
sockets.c:
const bsd_send send = lwip_send;
But I don't have test it, this is just an idea...
_______________________________________________________
Reply to this item at:
<http://savannah.nongnu.org/patch/?5448>
_______________________________________________
Message posté via/par Savannah
http://savannah.nongnu.org/