aboutsummaryrefslogtreecommitdiff
path: root/src/encoder_list.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/encoder_list.h')
-rw-r--r--src/encoder_list.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/encoder_list.h b/src/encoder_list.h
index fb1c9bf9..31663c75 100644
--- a/src/encoder_list.h
+++ b/src/encoder_list.h
@@ -30,6 +30,10 @@ extern const struct encoder_plugin *const encoder_plugins[];
(plugin = *encoder_plugin_iterator) != NULL; \
++encoder_plugin_iterator)
+#ifdef __cplusplus
+extern "C" {
+#endif
+
/**
* Looks up an encoder plugin by its name.
*
@@ -40,4 +44,8 @@ extern const struct encoder_plugin *const encoder_plugins[];
const struct encoder_plugin *
encoder_plugin_get(const char *name);
+#ifdef __cplusplus
+}
+#endif
+
#endif