mirror of
https://github.com/tuxbox-neutrino/neutrino.git
synced 2025-08-26 23:13:13 +02:00
xmltok: add hack to rename functions
this avoids crashes due to clashes with libexpat, which might be pulled in dynamically e.g. on PC by libGL.
This commit is contained in:
@@ -21,6 +21,17 @@ Contributor(s):
|
|||||||
#ifndef XmlTok_INCLUDED
|
#ifndef XmlTok_INCLUDED
|
||||||
#define XmlTok_INCLUDED 1
|
#define XmlTok_INCLUDED 1
|
||||||
|
|
||||||
|
/* ugly: prefix all functions to avoid clashing with "real" libexpat
|
||||||
|
* or similar pulled in by other libs e.g. on PC */
|
||||||
|
#define XmlParseXmlDecl NEUTRINO_MP_XmlParseXmlDecl
|
||||||
|
#define XmlInitEncoding NEUTRINO_MP_XmlInitEncoding
|
||||||
|
#define XmlGetUtf8InternalEncoding NEUTRINO_MP_XmlGetUtf8InternalEncoding
|
||||||
|
#define XmlGetUtf16InternalEncoding NEUTRINO_MP_XmlGetUtf16InternalEncoding
|
||||||
|
#define XmlUtf8Encode NEUTRINO_MP_XmlUtf8Encode
|
||||||
|
#define XmlUtf16Encode NEUTRINO_MP_XmlUtf16Encode
|
||||||
|
#define XmlSizeOfUnknownEncoding NEUTRINO_MP_XmlSizeOfUnknownEncoding
|
||||||
|
#define XmlInitUnknownEncoding NEUTRINO_MP_XmlInitUnknownEncoding
|
||||||
|
|
||||||
#ifdef __cplusplus
|
#ifdef __cplusplus
|
||||||
extern "C" {
|
extern "C" {
|
||||||
#endif
|
#endif
|
||||||
|
Reference in New Issue
Block a user