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