Add extern "C" to rxml.h for C++ builds

This commit is contained in:
twinaphex 2013-01-02 17:32:35 +01:00
parent d0c4de9635
commit 88fb441bdd

View File

@ -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