netfilter-devel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Chris PeBenito <chpebeni@linux.microsoft.com>
To: netfilter-devel@vger.kernel.org
Subject: [PATCH libiptc] libip6tc.h: Add extern "C" wrapping for C++ linking.
Date: Mon, 15 Jul 2019 11:58:55 -0400	[thread overview]
Message-ID: <20190715155855.4415-1-chpebeni@linux.microsoft.com> (raw)

Signed-off-by: Chris PeBenito <chpebeni@linux.microsoft.com>
---
 include/libiptc/libip6tc.h | 8 ++++++++
 1 file changed, 8 insertions(+)

diff --git a/include/libiptc/libip6tc.h b/include/libiptc/libip6tc.h
index 9aed80a0..eaf34d65 100644
--- a/include/libiptc/libip6tc.h
+++ b/include/libiptc/libip6tc.h
@@ -12,6 +12,10 @@
 #include <linux/netfilter_ipv6/ip6_tables.h>
 #include <libiptc/xtcshared.h>
 
+#ifdef __cplusplus
+extern "C" {
+#endif
+
 #define ip6tc_handle xtc_handle
 #define ip6t_chainlabel xt_chainlabel
 
@@ -158,4 +162,8 @@ extern void dump_entries6(struct xtc_handle *const);
 
 extern const struct xtc_ops ip6tc_ops;
 
+#ifdef __cplusplus
+} /* extern "C" */
+#endif
+
 #endif /* _LIBIP6TC_H */
-- 
2.21.0


             reply	other threads:[~2019-07-15 15:59 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2019-07-15 15:58 Chris PeBenito [this message]
2019-07-30 14:43 ` [PATCH libiptc] libip6tc.h: Add extern "C" wrapping for C++ linking Pablo Neira Ayuso

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20190715155855.4415-1-chpebeni@linux.microsoft.com \
    --to=chpebeni@linux.microsoft.com \
    --cc=netfilter-devel@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).