summaryrefslogtreecommitdiffstats
path: root/include/xtables.h.in
diff options
context:
space:
mode:
Diffstat (limited to 'include/xtables.h.in')
-rw-r--r--include/xtables.h.in8
1 files changed, 8 insertions, 0 deletions
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 */