summaryrefslogtreecommitdiff
path: root/src/raptor_internal.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/raptor_internal.h')
-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 */