* libnfnetlink: mark functions as extern C
@ 2008-06-23 7:59 Jan Engelhardt
2008-06-24 16:13 ` Patrick McHardy
0 siblings, 1 reply; 2+ messages in thread
From: Jan Engelhardt @ 2008-06-23 7:59 UTC (permalink / raw)
To: pablo; +Cc: Netfilter Developer Mailing List
commit 079ff9c9c82629115711410d52bc88b84bbc3a8e
Author: Jan Engelhardt <jengelh@medozas.de>
Date: Mon Jun 23 09:58:34 2008 +0200
mark functions as extern C
This is needed when #included from C++.
Reported-by: Simon <turner25@gmail.com>
Signed-off-by: Jan Engelhardt <jengelh@medozas.de>
---
include/libnfnetlink/libnfnetlink.h | 8 ++++++++
1 files changed, 8 insertions(+), 0 deletions(-)
diff --git a/include/libnfnetlink/libnfnetlink.h b/include/libnfnetlink/libnfnetlink.h
index 3c64aac..83874e3 100644
--- a/include/libnfnetlink/libnfnetlink.h
+++ b/include/libnfnetlink/libnfnetlink.h
@@ -31,6 +31,10 @@
#define NFNL_BUFFSIZE 8192
+#ifdef __cplusplus
+extern "C" {
+#endif
+
struct nfnlhdr {
struct nlmsghdr nlh;
struct nfgenmsg nfmsg;
@@ -202,6 +206,10 @@ int nlif_index2name(struct nlif_handle *nlif_handle,
unsigned int if_index,
char *name);
+#ifdef __cplusplus
+} /* extern "C" */
+#endif
+
/* Pablo: What is the equivalence of be64_to_cpu in userspace?
*
* Harald: Good question. I don't think there's a standard way [yet?],
^ permalink raw reply related [flat|nested] 2+ messages in thread
* Re: libnfnetlink: mark functions as extern C
2008-06-23 7:59 libnfnetlink: mark functions as extern C Jan Engelhardt
@ 2008-06-24 16:13 ` Patrick McHardy
0 siblings, 0 replies; 2+ messages in thread
From: Patrick McHardy @ 2008-06-24 16:13 UTC (permalink / raw)
To: Jan Engelhardt; +Cc: pablo, Netfilter Developer Mailing List
Jan Engelhardt wrote:
> commit 079ff9c9c82629115711410d52bc88b84bbc3a8e
> Author: Jan Engelhardt <jengelh@medozas.de>
> Date: Mon Jun 23 09:58:34 2008 +0200
>
> mark functions as extern C
>
> This is needed when #included from C++.
Applied, thanks.
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2008-06-24 16:13 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-06-23 7:59 libnfnetlink: mark functions as extern C Jan Engelhardt
2008-06-24 16:13 ` Patrick McHardy
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.