diff options
author | Dave Beckett <dave@dajobe.org> | 2020-09-06 18:01:58 -0700 |
---|---|---|
committer | Dave Beckett <dave@dajobe.org> | 2020-09-06 18:01:58 -0700 |
commit | bf7a43622bdbc1a795b2a005ec8f44ef66de80d7 (patch) | |
tree | dd0ceae8c2e0050a4f258d32501f514a55a327d1 | |
parent | aa2b1bb4e11f3877470f3f30ce8fa4c147318842 (diff) | |
download | raptor-bf7a43622bdbc1a795b2a005ec8f44ef66de80d7.tar.gz |
Include ICU (vi libxml) in C++ context if running under C++
-rw-r--r-- | src/raptor_internal.h | 8 |
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 */ |