summaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorJan Engelhardt <jengelh@medozas.de>2009-05-22 11:46:55 +0200
committerJan Engelhardt <jengelh@medozas.de>2009-05-26 13:12:05 +0200
commit771871e1d9c39310cb6e2c595270d2e651309e6d (patch)
tree922ee691169a62a16664693c95202a3086c4ce6c /include
parentc65b5f2c7dcbd7ca5bd7759ab5180bd4e898e90a (diff)
xtables: use extern "C"
This fixes linking errors for 3rd-party C++ code. Signed-off-by: Jan Engelhardt <jengelh@medozas.de>
Diffstat (limited to 'include')
-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 */