From bf7a43622bdbc1a795b2a005ec8f44ef66de80d7 Mon Sep 17 00:00:00 2001 From: Dave Beckett Date: Sun, 6 Sep 2020 18:01:58 -0700 Subject: Include ICU (vi libxml) in C++ context if running under C++ --- src/raptor_internal.h | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) 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 - +#ifdef __cplusplus +} +#endif /* libxml-only prototypes */ -- cgit v1.2.1