From 771871e1d9c39310cb6e2c595270d2e651309e6d Mon Sep 17 00:00:00 2001 From: Jan Engelhardt Date: Fri, 22 May 2009 11:46:55 +0200 Subject: xtables: use extern "C" This fixes linking errors for 3rd-party C++ code. Signed-off-by: Jan Engelhardt --- include/xtables.h.in | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'include') diff --git a/include/xtables.h.in b/include/xtables.h.in index a399f90f..4d4ca0a6 100644 --- a/include/xtables.h.in +++ b/include/xtables.h.in @@ -203,6 +203,10 @@ struct xtables_globals void (*exit_err)(enum xtables_exittype status, const char *msg, ...) __attribute__((noreturn, format(printf,2,3))); }; +#ifdef __cplusplus +extern "C" { +#endif + extern const char *xtables_modprobe_program; extern struct xtables_match *xtables_matches; extern struct xtables_target *xtables_targets; @@ -295,4 +299,8 @@ extern void _init(void); #endif +#ifdef __cplusplus +} /* extern "C" */ +#endif + #endif /* _XTABLES_H */ -- cgit v1.2.3