From: Jan Engelhardt Date: Fri, 22 May 2009 09:46:55 +0000 (+0200) Subject: xtables: use extern "C" X-Git-Tag: v1.4.4~14 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=771871e1d9c39310cb6e2c595270d2e651309e6d;p=thirdparty%2Fiptables.git xtables: use extern "C" This fixes linking errors for 3rd-party C++ code. Signed-off-by: Jan Engelhardt --- 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 */