From 88fb441bddd38e8379aaa90adc5b1b440064fe45 Mon Sep 17 00:00:00 2001 From: twinaphex Date: Wed, 2 Jan 2013 17:32:35 +0100 Subject: [PATCH] Add extern "C" to rxml.h for C++ builds --- compat/rxml/rxml.h | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/compat/rxml/rxml.h b/compat/rxml/rxml.h index 50a97f79f8..396bafcb08 100644 --- a/compat/rxml/rxml.h +++ b/compat/rxml/rxml.h @@ -16,6 +16,10 @@ #ifndef RXML_H__ #define RXML_H__ +#ifdef __cplusplus +extern "C" { +#endif + // Total NIH. Very trivial "XML" implementation for use in RetroArch. // Error checking is minimal. Invalid documents may lead to very buggy behavior, but // memory corruption should never happen. @@ -73,5 +77,9 @@ typedef rxml_document_t *xmlDocPtr; #define xmlFreeParserCtxt(ctx) ((void)0) #endif +#ifdef __cplusplus +} +#endif + #endif