From ab6ec2eabb14e2da973d427f0c6c74a72366f407 Mon Sep 17 00:00:00 2001 From: David Kilzer Date: Thu, 11 May 2023 20:42:47 -0700 Subject: Add extern "C" { } block to xsltlocale.h Make it safe to include this file in C++ sources. --- libxslt/xsltlocale.h | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/libxslt/xsltlocale.h b/libxslt/xsltlocale.h index 10a4402f..c8be58d3 100644 --- a/libxslt/xsltlocale.h +++ b/libxslt/xsltlocale.h @@ -14,6 +14,10 @@ #include #include "xsltexports.h" +#ifdef __cplusplus +extern "C" { +#endif + XSLTPUBFUN void * XSLTCALL xsltNewLocale (const xmlChar *langName, int lowerFirst); @@ -33,4 +37,8 @@ XSLTPUBFUN int XSLTCALL const xmlChar *str1, const xmlChar *str2); +#ifdef __cplusplus +} +#endif + #endif /* __XML_XSLTLOCALE_H__ */ -- cgit v1.2.1