From 50c174df07dd196bf1bb023d748d6903cf4b5c71 Mon Sep 17 00:00:00 2001 From: jp9000 Date: Mon, 9 May 2022 22:34:40 -0700 Subject: [PATCH] deps/opts-parser: Add missing c extern for cpp --- deps/opts-parser/opts-parser.h | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/deps/opts-parser/opts-parser.h b/deps/opts-parser/opts-parser.h index 5a228f8d2..4239f9d61 100644 --- a/deps/opts-parser/opts-parser.h +++ b/deps/opts-parser/opts-parser.h @@ -2,6 +2,10 @@ #include +#ifdef __cplusplus +extern "C" { +#endif + struct obs_option { char *name; char *value; @@ -17,3 +21,7 @@ struct obs_options { struct obs_options obs_parse_options(const char *options_string); void obs_free_options(struct obs_options options); + +#ifdef __cplusplus +} +#endif