From 0b9b67866af8734a8d39dc7c229da7e4ba1be89f Mon Sep 17 00:00:00 2001 From: Jan Engelhardt Date: Tue, 24 Jun 2008 18:14:08 +0200 Subject: libnfq: 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/libnetfilter_queue/libipq.h | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'include/libnetfilter_queue/libipq.h') diff --git a/include/libnetfilter_queue/libipq.h b/include/libnetfilter_queue/libipq.h index c33f7e4..0f0df22 100644 --- a/include/libnetfilter_queue/libipq.h +++ b/include/libnetfilter_queue/libipq.h @@ -50,6 +50,10 @@ typedef unsigned long ipq_id_t; #define MSG_TRUNC 0x20 #endif +#ifdef __cplusplus +extern "C" { +#endif + struct ipq_handle { struct nfq_handle *nfqnlh; @@ -84,5 +88,9 @@ int ipq_ctl(const struct ipq_handle *h, int request, ...); char *ipq_errstr(void); void ipq_perror(const char *s); +#ifdef __cplusplus +} /* extern "C" */ +#endif + #endif /* _LIBIPQ_H */ -- cgit v1.2.3