aboutsummaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authordec05eba <dec05eba@protonmail.com>2021-07-02 00:09:26 +0200
committerdec05eba <dec05eba@protonmail.com>2021-07-02 00:09:26 +0200
commit78f204d79c9ed61815a7eb206f2c1a4f4df289a0 (patch)
tree2c14d10a78cd6ec72af97ccfea5a15225a8fa001 /include
parent917f810d7f196fef5959bc3096ce7360df961fc0 (diff)
add extern C for c++ for header
Diffstat (limited to 'include')
-rw-r--r--include/HtmlParser.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/include/HtmlParser.h b/include/HtmlParser.h
index 0bd7203..e6f0c3b 100644
--- a/include/HtmlParser.h
+++ b/include/HtmlParser.h
@@ -8,6 +8,10 @@
#include <stddef.h>
+#ifdef __cplusplus
+extern "C" {
+#endif
+
typedef struct {
const char *data;
size_t size;
@@ -52,4 +56,8 @@ struct HtmlParser {
/* Note: HTML_PARSE_TAG_START is guaranteed to be called for a tag before HTML_PARSE_TAG_END */
void html_parser_parse(const char *html_source, size_t len, HtmlParseCallback parse_callback, void *userdata);
+#ifdef __cplusplus
+}
+#endif
+
#endif /* HTML_PARSER_H */