1
0
mirror of https://gitlab.gnome.org/GNOME/libxml2.git synced 2025-10-26 00:37:43 +03:00

threads: Fix --with-thread-alloc

Fixes #606.
This commit is contained in:
Nick Wellnhofer
2023-10-18 20:06:35 +02:00
parent 4f132bcdb3
commit 253f260bb1
4 changed files with 23 additions and 8 deletions

View File

@@ -80,7 +80,7 @@ typedef char *(*xmlStrdupFunc)(const char *str);
#define XML_OP XML_DECLARE_GLOBAL
XML_GLOBALS_ALLOC
#undef XML_OP
#ifdef LIBXML_THREAD_ENABLED
#if defined(LIBXML_THREAD_ENABLED) && !defined(XML_GLOBALS_NO_REDEFINITION)
#define xmlMalloc XML_GLOBAL_MACRO(xmlMalloc)
#define xmlMallocAtomic XML_GLOBAL_MACRO(xmlMallocAtomic)
#define xmlRealloc XML_GLOBAL_MACRO(xmlRealloc)