This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.
Index Nav: | [Date Index] [Subject Index] [Author Index] [Thread Index] | |
---|---|---|
Message Nav: | [Date Prev] [Date Next] | [Thread Prev] [Thread Next] |
Other format: | [Raw text] |
extern "C" { static inline int foo(int socket) { struct empty_t {}; struct network_message_t { empty_t foo; int stuff; } msg; msg.stuff=0; return send(socket,&msg,sizeof(msg)); } }
We would like foo() to send same message from C++ and C code.
Index Nav: | [Date Index] [Subject Index] [Author Index] [Thread Index] | |
---|---|---|
Message Nav: | [Date Prev] [Date Next] | [Thread Prev] [Thread Next] |