summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDavid Kilzer <ddkilzer@apple.com>2023-05-11 20:42:47 -0700
committerDavid Kilzer <ddkilzer@apple.com>2023-05-11 20:43:41 -0700
commitab6ec2eabb14e2da973d427f0c6c74a72366f407 (patch)
tree9be441ba2812e0c7d1dc49305a858905a50a5b2f
parent7895729ae67f7eeeb7f7abe7140e4b31d2097b2c (diff)
downloadlibxslt-master.tar.gz
Add extern "C" { } block to xsltlocale.hHEADmaster
Make it safe to include this file in C++ sources.
-rw-r--r--libxslt/xsltlocale.h8
1 files changed, 8 insertions, 0 deletions
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 <libxml/xmlstring.h>
#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__ */