From fd2361ef5533b0f2cde292c606f0a51ac1eed797 Mon Sep 17 00:00:00 2001 From: ehofman Date: Fri, 1 May 2009 08:05:37 +0000 Subject: [PATCH] allow C++ to include the header --- utils/xmlgrep/xml.h | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/utils/xmlgrep/xml.h b/utils/xmlgrep/xml.h index a94bb6c18..26c55098f 100644 --- a/utils/xmlgrep/xml.h +++ b/utils/xmlgrep/xml.h @@ -28,6 +28,10 @@ #ifndef __XML_CONFIG #define __XML_CONFIG 1 +#ifdef __cplusplus +extern "C" { +#endif + enum { XML_NO_ERROR = 0, @@ -359,5 +363,9 @@ size_t xmlErrorGetColumnNo(const void *, int); const char *xmlErrorGetString(const void *, int); #endif +#ifdef __cplusplus +} +#endif + #endif /* __XML_CONFIG */ -- 2.39.5