summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDave Beckett <dave@dajobe.org>2020-09-06 18:01:58 -0700
committerDave Beckett <dave@dajobe.org>2020-09-06 18:01:58 -0700
commitbf7a43622bdbc1a795b2a005ec8f44ef66de80d7 (patch)
treedd0ceae8c2e0050a4f258d32501f514a55a327d1
parentaa2b1bb4e11f3877470f3f30ce8fa4c147318842 (diff)
downloadraptor-bf7a43622bdbc1a795b2a005ec8f44ef66de80d7.tar.gz
Include ICU (vi libxml) in C++ context if running under C++
-rw-r--r--src/raptor_internal.h8
1 files changed, 7 insertions, 1 deletions
diff --git a/src/raptor_internal.h b/src/raptor_internal.h
index 1b8c0009..d80e660c 100644
--- a/src/raptor_internal.h
+++ b/src/raptor_internal.h
@@ -199,8 +199,14 @@ void raptor_sign_free(void *ptr);
#ifdef RAPTOR_XML_LIBXML
+/* newer ICU (via libxml/encoding.h) requires C++ context */
+#ifdef __cplusplus
+extern "C++" {
+#endif
#include <libxml/parser.h>
-
+#ifdef __cplusplus
+}
+#endif
/* libxml-only prototypes */