Răsfoiți Sursa

deps/opts-parser: Add missing c extern for cpp

jp9000 3 ani în urmă
părinte
comite
50c174df07
1 a modificat fișierele cu 8 adăugiri și 0 ștergeri
  1. 8 0
      deps/opts-parser/opts-parser.h

+ 8 - 0
deps/opts-parser/opts-parser.h

@@ -2,6 +2,10 @@
 
 
 #include <stddef.h>
 #include <stddef.h>
 
 
+#ifdef __cplusplus
+extern "C" {
+#endif
+
 struct obs_option {
 struct obs_option {
 	char *name;
 	char *name;
 	char *value;
 	char *value;
@@ -17,3 +21,7 @@ struct obs_options {
 
 
 struct obs_options obs_parse_options(const char *options_string);
 struct obs_options obs_parse_options(const char *options_string);
 void obs_free_options(struct obs_options options);
 void obs_free_options(struct obs_options options);
+
+#ifdef __cplusplus
+}
+#endif