From 597878c9f82150a61c551cc3f32a6c68528c9fa1 Mon Sep 17 00:00:00 2001 From: Jan Engelhardt Date: Tue, 24 Jun 2008 18:13:25 +0200 Subject: libnfnetlink: mark functions as extern C mark functions as extern C This is needed when #included from C++. Reported-by: Simon Signed-off-by: Jan Engelhardt Signed-off-by: Patrick McHardy --- include/libnfnetlink/libnfnetlink.h | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'include') 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?], -- cgit v1.2.3